Dennis Bohnstedt created CAMEL-21840:
----------------------------------------
Summary: camel-http does not encode path correctly when used with
HTTP_QUERY header
Key: CAMEL-21840
URL: https://issues.apache.org/jira/browse/CAMEL-21840
Project: Camel
Issue Type: Bug
Components: camel-http
Affects Versions: 4.10.1, 3.10.0
Reporter: Dennis Bohnstedt
During update from Camel 2.x to 4.x we found a bug in Camel-http. It no longer
encodes Http path correctly when used with header HTTP_QUERY.
The problem is that HttpProducer does not convert the path to ASCIIString,
since it uses the wrong variable when creating HttpUriRequest.
Camel 2.x:
{code:java}
http-outgoing-0 >> "GET /rest/service?ProcesName='Ans%C3%A6ttelse'
HTTP/1.1[\r][\n]"
{code}
Camel 4.x:
{code:java}
http-outgoing-0 >> "GET /rest/service?ProcesName='Ans[0xffffffe6]ttelse'
HTTP/1.1[\r][\n]" {code}
The problem was introduced in version 3.10.0.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)