Marat Gubaidullin created CAMEL-17298:
-----------------------------------------

             Summary: camel-vertx-http duplicates path
                 Key: CAMEL-17298
                 URL: https://issues.apache.org/jira/browse/CAMEL-17298
             Project: Camel
          Issue Type: Bug
          Components: camel-vertx
    Affects Versions: 3.13.0
            Reporter: Marat Gubaidullin


The following code
{code:java}
from("timer:test?repeatCount=1")
    .setHeader(Exchange.HTTP_URI, 
simple("https://gorest.co.in/public/v1/users/123/posts";))
    .toD("vertx-http:${header.CamelHttpUri}");
{code}
throws exception:
{noformat}
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
{noformat}

Because it duplicates path *public/v1/users/123/posts/public/v1/users/123/posts*


Same code with camel-http work fine
{code:java}
.toD("${header.CamelHttpUri}")
{code}




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to