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

Route using jetty listener and jetty http client corrupts mime data when chunked encoding is disabled

XMLWordPrintable

      This is a follow on issue to MR-614.

      <camelContext xmlns="http://camel.apache.org/schema/blueprint">
              <route>
                  <from uri="jetty:http://0.0.0.0/getSomeData/usingJetty?matchOnUriPrefix=true&amp;bridgeEndpoint=true&amp;enableMultipartFilter=false&amp;disableStreamCache=true&amp;chunked=false" />
                  <to uri="jetty:http://localhost:8080/SimpleWebApp/getSomeData?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>
              </route>
           </camelContext>
      
      

      If chunked encoding is disabled on the from, then camel is to turning the message body into a string. On messages that contain
      binary/mime content, this can result in corrupted messages.

      Testcase is pretty much same as MR-614 but with chunked attr set as shown above.

      Workaround for now is to use the default (chunked=true). This will not exhibit the problem as per MR-614.

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

                Created:
                Updated:
                Resolved: