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 2D628957A for ; Thu, 14 Jun 2012 09:53:47 +0000 (UTC) Received: (qmail 96777 invoked by uid 500); 14 Jun 2012 09:53:46 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 96691 invoked by uid 500); 14 Jun 2012 09:53: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 96648 invoked by uid 99); 14 Jun 2012 09:53:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 09:53:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9FFAF14002E for ; Thu, 14 Jun 2012 09:53:42 +0000 (UTC) Date: Thu, 14 Jun 2012 09:53:42 +0000 (UTC) From: "metatech (JIRA)" To: issues@camel.apache.org Message-ID: <1068896023.15181.1339667622657.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1183495704.15115.1339665822774.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (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 ] metatech updated CAMEL-5367: ---------------------------- Description: 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 the same class converts it again, which corrupts it even more. was: 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. > 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 the same class 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