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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: camel-catalog, camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

              • Assignee:
                zregvart Zoran Regvart
                Reporter:
                zregvart Zoran Regvart
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: