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 7646B18634 for ; Wed, 2 Mar 2016 06:30:18 +0000 (UTC) Received: (qmail 18861 invoked by uid 500); 2 Mar 2016 06:30:18 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 18818 invoked by uid 500); 2 Mar 2016 06:30:18 -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 18802 invoked by uid 99); 2 Mar 2016 06:30:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 06:30:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 362072C1F56 for ; Wed, 2 Mar 2016 06:30:18 +0000 (UTC) Date: Wed, 2 Mar 2016 06:30:18 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9660) HTTP producers crash when Exchange.HTTP_URI header contains unencoded unsafe characters 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-9660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175129#comment-15175129 ] ASF GitHub Bot commented on CAMEL-9660: --------------------------------------- GitHub user tadayosi opened a pull request: https://github.com/apache/camel/pull/878 CAMEL-9660 - HTTP producers crash when Exchange.HTTP_URI header contains unencoded unsafe characters Please review and merge it. Thanks! https://issues.jboss.org/browse/ENTESB-4737 You can merge this pull request into a Git repository by running: $ git pull https://github.com/tadayosi/camel CAMEL-9660 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/878.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #878 ---- commit 01c0cd4fa33eec1e64e19967c5f4a0a7fa7a8545 Author: Tadayoshi Sato Date: 2016-03-02T06:26:46Z CAMEL-9660 - HTTP producers crash when Exchange.HTTP_URI header contains unencoded unsafe characters ---- > HTTP producers crash when Exchange.HTTP_URI header contains unencoded unsafe characters > --------------------------------------------------------------------------------------- > > Key: CAMEL-9660 > URL: https://issues.apache.org/jira/browse/CAMEL-9660 > Project: Camel > Issue Type: Bug > Components: camel-http, camel-http-common, camel-http4, camel-jetty > Affects Versions: 2.16.2, 2.17.0 > Reporter: Tadayoshi Sato > > For instance, > {code:java} > template.sendBodyAndHeader("jetty:http://localhost:9000/test?bridgeEndpoint=true", "Hello World", Exchange.HTTP_URI, "/<>{}"); > {code} > this test code crashes with the following error: > {code} > java.net.URISyntaxException: Illegal character in path at index 1: /<>{} > {code} > It is because there are places in the HTTP producers code where they are trying to create a {{java.net.URI}} instance based on the unsafe string "/<>{}". > This issue causes practical problems when bridging between Netty HTTP consumer endpoints and those HTTP producer endpoints, since Netty consumers route IN messages with {{Exchange.HTTP_URI}} header being unencoded. -- This message was sent by Atlassian JIRA (v6.3.4#6332)