Tadayoshi Sato created CAMEL-9660:
-------------------------------------
Summary: 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)