Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0-M1, 3.0-M2, 3.0, 3.0.1
-
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.