Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.13.0
-
None
-
Unknown
Description
The following code
from("timer:test?repeatCount=1") .setHeader(Exchange.HTTP_URI, simple("https://gorest.co.in/public/v1/users/123/posts")) .toD("vertx-http:${header.CamelHttpUri}");
throws exception:
Error processing exchange. Exchange[AB574B09C060549-0000000000000000]. Caused by: [org.apache.camel.http.base.HttpOperationFailedException - HTTP operation failed invoking https://gorest.co.in/public/v1/users/123/posts/public/v1/users/123/posts with statusCode: 404]: org.apache.camel.http.base.HttpOperationFailedException: HTTP operation failed invoking https://gorest.co.in/public/v1/users/123/posts/public/v1/users/123/posts with statusCode: 404
Because it duplicates path public/v1/users/123/posts/public/v1/users/123/posts
Same code with camel-http work fine
.toD("${header.CamelHttpUri}")