Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-614

Route using jetty listener and http client corrupting binary/mime data as it passes through

    XMLWordPrintable

Details

    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&amp;bridgeEndpoint=true&amp;enableMultipartFilter=false&amp;chunked=false" />
                  <to uri="jetty:http://localhost:8080/SimpleWebApp/getSomeData?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>
              </route>
              <route>
                  <!-- this is ok --->
                  <from uri="jetty:http://0.0.0.0/getSomeData/usingHttp?matchOnUriPrefix=true&amp;bridgeEndpoint=true&amp;enableMultipartFilter=false" />
                  <to uri="http://localhost:8080/SimpleWebApp/getSomeData?bridgeEndpoint=true&amp;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.

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            davestanley Dave Stanley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: