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

Camel catalog's asEndpointUri mangles endpoint URIs for unequal number of tokens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-catalog, camel-core
    • None
    • Unknown

    Description

      When used with unequal number of tokens vs parameters the CamelCatalog asEndpointUri can drop extra of the tokens.

      For instance if used with rest component and uriTemplate containing template placeholders, expected endpoint URI should be:

      "rest:GET:/path:/template/{param}"
      

      but it ends up being:

      "rest:GET:/path:/template/{param"
      

      as the number of tokens (:, :/, :/, {, }) is 5, and the number of properties specified (rest, GET, /path, /template/{param}) is 4

      Attachments

        Issue Links

          Activity

            People

              zregvart Zoran Regvart
              zregvart Zoran Regvart
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: