Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
2.10.0
-
None
-
Unknown
Description
When a Jetty/HTTP endpoint that has the matchOnUriPrefix=true option set and is configured to match any URI (no path is specified) the HttpHelper concatenates the consumer path to the producer endpoint creating an HttpOperationUnsupportedException.
For example the following will process as expected and the HttpHelper class will create the http://localhost:10021/proxy/ping consumer URI:
from("jetty:http://localhost:10020/ping?matchOnUriPrefix=true") .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true");
While this code will create http://localhost:10021/proxy/ping/ping and create the exception (the only difference is there isn't a path on the consumer):
from("jetty:http://localhost:10020?matchOnUriPrefix=true") .to("jetty:http://localhost:10021/proxy/ping?bridgeEndpoint=true");
Test case and patch will be uploaded shortly.
Thanks,
Scott ES
http://fusesource.com
Attachments
Attachments
Issue Links
- depends upon
-
CAMEL-5912 Add url rewrite plugin to http components
- Resolved