Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-503

servicemix-http provider should not add the inMessage content-type header to the response if a new content-type is generated (mime messages)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0-M1, 3.0-M2, 3.0, 3.0.1
    • 3.0
    • servicemix-http
    • None
    • Patch Available

    Description

      This is similar to SM-502 - the loop line 111 of ProviderProcessor in servicemix-http adds a Content-Type header from the in message if there was one. The content-type is regenerated by the soapWriter a few lines later and should override the first one. However both end up in the http request.

      To see the bug, create 2 http:endpoints, one consumer and one provider, the latter being target of the former. Then submit a Soap With Attachment request into the consumer. The output is invalid because the first Content-Type header does not match the content (boundaries are wrong).

      The patch attached removes the first header.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patch.txt
          0.8 kB
          Renaud Bruyeron

        Activity

          People

            gnodet Guillaume Nodet
            bruyeron@fullsix.com Renaud Bruyeron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: