Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.16.2, 2.17.0
-
None
-
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