Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE1499D89 for ; Mon, 18 Jun 2012 09:12:44 +0000 (UTC) Received: (qmail 73543 invoked by uid 500); 18 Jun 2012 09:12:44 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 73477 invoked by uid 500); 18 Jun 2012 09:12:43 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 73450 invoked by uid 99); 18 Jun 2012 09:12:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 09:12:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 65180141F4C for ; Mon, 18 Jun 2012 09:12:43 +0000 (UTC) Date: Mon, 18 Jun 2012 09:12:43 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: <1182798650.24161.1340010763415.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1183495704.15115.1339665822774.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Assigned] (CAMEL-5367) DefaultJettyHttpBinding should not convert binary HTTP body MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen reassigned CAMEL-5367: ---------------------------------- Assignee: Claus Ibsen > 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 > Assignee: Claus Ibsen > > 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