[
https://issues.apache.org/jira/browse/CAMEL-9660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182461#comment-15182461
]
ASF GitHub Bot commented on CAMEL-9660:
---------------------------------------
Github user tadayosi closed the pull request at:
https://github.com/apache/camel/pull/878
> 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.16.3, 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)