Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.2.3
-
None
-
Unknown
Description
When using WSS4JStaxOutInterceptor's WSSSecurityProperties constructor, LoggingOutInterceptor doesn't work. This is because in that constructor, the interceptor is not configured to run after LoggingOutInterceptor. The other two constructors don't have this problem.
Compare this constructor :
public WSS4JStaxOutInterceptor(WSSSecurityProperties securityProperties) { super(securityProperties); WSSec.init(); setPhase(Phase.PRE_STREAM); getBefore().add(StaxOutInterceptor.class.getName()); ending = createEndingInterceptor(); }
With this constructor :
public WSS4JStaxOutInterceptor(Map<String, Object> props) { super(props); WSSec.init(); setPhase(Phase.PRE_STREAM); getBefore().add(StaxOutInterceptor.class.getName()); getAfter().add("org.apache.cxf.interceptor.LoggingOutInterceptor"); getAfter().add("org.apache.cxf.ext.logging.LoggingOutInterceptor"); ending = createEndingInterceptor(); }