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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.4
    • Fix Version/s: 2.7.8, 2.6.11
    • Component/s: None
    • Labels:
    • Estimated Complexity:
      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

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              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