Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.16.2, 2.17.0
-
Component/s: camel-http, camel-http-common, camel-http4, camel-jetty
-
Labels:None
-
Estimated Complexity:Unknown
Description
For instance,
template.sendBodyAndHeader("jetty:http://localhost:9000/test?bridgeEndpoint=true", "Hello World", Exchange.HTTP_URI, "/<>{}");
this test code crashes with the following error:
java.net.URISyntaxException: Illegal character in path at index 1: /<>{}
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.
Attachments
Issue Links
- relates to
-
CAMEL-9442 Query string gets decoded when bridging from netty-http to http4
-
- Resolved
-
-
CAMEL-9658 Path gets decoded when bridging HTTP endpoints
-
- Resolved
-