Details
-
Bug
-
Resolution: Done
-
Major
-
2.8.0-fuse-03-06, 2.9.0-fuse-00-00
-
None
-
None
Description
We have a jetty route running in 4.4.1 ESB as follows:
<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> <camelContext xmlns="http://camel.apache.org/schema/blueprint"> <route> <!-- this route shows corrupted mime content when proxied back to client ---> <from uri="jetty:http://0.0.0.0/getSomeData/usingJetty?matchOnUriPrefix=true&bridgeEndpoint=true&enableMultipartFilter=false&chunked=false" /> <to uri="jetty:http://localhost:8080/SimpleWebApp/getSomeData?bridgeEndpoint=true&throwExceptionOnFailure=false"/> </route> <route> <!-- this is ok ---> <from uri="jetty:http://0.0.0.0/getSomeData/usingHttp?matchOnUriPrefix=true&bridgeEndpoint=true&enableMultipartFilter=false" /> <to uri="http://localhost:8080/SimpleWebApp/getSomeData?bridgeEndpoint=true&throwExceptionOnFailure=false"/> </route> </camelContext> </blueprint>
Client using http commons api, camel proxies request to backend as shown in the attached testcase..
Symptom:
Need to use jetty as the producer for performance reasons, but its corrupting the binary data that gets returned from the server..
When http is used as the producer, binary integrity is maintained.