You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/03/04 10:43:40 UTC

[jira] [Resolved] (CAMEL-9660) HTTP producers crash when Exchange.HTTP_URI header contains unencoded unsafe characters

     [ https://issues.apache.org/jira/browse/CAMEL-9660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-9660.
--------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.17.0

> 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
>            Assignee: Claus Ibsen
>             Fix For: 2.17.0
>
>
> 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)