[
https://issues.apache.org/activemq/browse/CAMEL-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59625#action_59625
]
Roland Knight commented on CAMEL-2778:
--------------------------------------
Can't compile the tests due to missing handler package (don't have time to
investigate why). Assuming the request sets the HTTP_PATH header (big
assumption on my part - I am not that familiar with this code), the code
below should work:
HttpPathTest
@Test
public void httpEscapedPath() throws Exception {
Exchange exchange = template.request("http4://" + getHostName() +
":" + getPort() + "/search%20more", new Processor() {
public void process(Exchange exchange) throws Exception {
}
});
assertExchange(exchange);
assert("/search%20more".equals(exchange.getIn().getHeader(Exchange.HTTP_PATH));
}
If this code works, the same needs to be done for HTTP_QUERY.
Also, note that I have only fixed these two cases in http4. There may be
more cases in http4 and http.
> Escaped characters in http4 URLs do not work
> --------------------------------------------
>
> Key: CAMEL-2778
> URL: https://issues.apache.org/activemq/browse/CAMEL-2778
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Roland Knight
> Attachments: HttpProducer.patch
>
>
> There is a bug in http4 HttpProducer that is unescaping URL query and path
> components too early. Patch fix attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.