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

org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor disables mtom silently

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.4
    • 2.7.8, 2.6.11
    • None
    • Novice

    Description

      handleMessage(..) in WSS4JOutInterceptor disables mtom silently:

      public void handleMessage(SoapMessage mc) throws Fault {
      //must turn off mtom when using WS-Sec so binary is inlined so it can
      //be properly signed/encrypted/etc...
      if (!mtomEnabled)

      { mc.put(org.apache.cxf.message.Message.MTOM_ENABLED, false); }

      ....
      }

      It would make sense to add a log warning if the client is configured to use mtom and the WSS4JInterceptor:

      public void handleMessage(SoapMessage mc) throws Fault {
      //must turn off mtom when using WS-Sec so binary is inlined so it can
      //be properly signed/encrypted/etc...
      if(mc.get(org.apache.cxf.message.Message.MTOM_ENABLED) == true &&
      !mtomEnabled) { log.warn("Incomatible configurations .... bla bla bla"); }

      if (!mtomEnabled) { mc.put(org.apache.cxf.message.Message.MTOM_ENABLED, false); }

      ....
      }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            coheigea Colm O hEigeartaigh
            landro Stefan Magnus Landrø
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

              Slack

                Issue deployment