[
https://issues.apache.org/jira/browse/CXF-7686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colm O hEigeartaigh reassigned CXF-7686:
----------------------------------------
Assignee: Colm O hEigeartaigh
> WSS4JStaxOutInterceptor with WSSSecurityProperties doesn't work with
> LoggingOutInterceptor
> ------------------------------------------------------------------------------------------
>
> Key: CXF-7686
> URL: https://issues.apache.org/jira/browse/CXF-7686
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 3.2.3
> Reporter: Ibrahim M. Ghazal
> Assignee: Colm O hEigeartaigh
> Priority: Major
>
> 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|https://github.com/apache/cxf/blob/018e91228d7f14c921710f8ac203a1a0a37110fa/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxOutInterceptor.java#L70]
> :
> {code}
> public WSS4JStaxOutInterceptor(WSSSecurityProperties securityProperties) {
> super(securityProperties);
> WSSec.init();
> setPhase(Phase.PRE_STREAM);
> getBefore().add(StaxOutInterceptor.class.getName());
> ending = createEndingInterceptor();
> }
> {code}
> With [this
> constructor|https://github.com/apache/cxf/blob/018e91228d7f14c921710f8ac203a1a0a37110fa/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JStaxOutInterceptor.java#L79]
> :
> {code}
> 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();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)