Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17298

camel-vertx-http duplicates path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.13.0
    • 3.14.0
    • camel-vertx
    • 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}")
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            marat.gubaidullin@gmail.com Marat Gubaidullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: