Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7686

WSS4JStaxOutInterceptor with WSSSecurityProperties doesn't work with LoggingOutInterceptor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.1.16, 3.2.4
    • Component/s: WS-* Components
    • Labels:
      None
    • Estimated Complexity:
      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();
          }
      

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              imgx64 Ibrahim M. Ghazal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: