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

WSS4JStaxOutInterceptor with WSSSecurityProperties doesn't work with LoggingOutInterceptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.1.16, 3.2.4
    • WS-* Components
    • 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();
          }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: