camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5367) DefaultJettyHttpBinding should not convert binary HTTP body
Date Fri, 15 Jun 2012 07:17:42 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295500#comment-13295500
] 

Claus Ibsen commented on CAMEL-5367:
------------------------------------

Can you try with latest Camel releases as we say on the support page
http://camel.apache.org/support

Also what are the exact HTTP header / body you send to the Camel jetty endpoint? The HTTP
headers need to indiciate its binary data.
                
> DefaultJettyHttpBinding should not convert binary HTTP body
> -----------------------------------------------------------
>
>                 Key: CAMEL-5367
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5367
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.6.0
>            Reporter: metatech
>
> In class DefaultJettyHttpBinding, method "extractResponseBody", any non-Java HTTP body
is considered as string.
> This corrupts binary files such as images when camel-jetty is used as a proxy http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html
> Only bodies with MIME types of non-binary data should be converted to strings.
> Method "doWriteDirectResponse" of class "DefaultHttpBinding" (in camel-http) converts
it again, which corrupts it even more.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message