You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/04/06 11:01:41 UTC

[jira] [Resolved] (CAMEL-11113) Camel catalog's asEndpointUri mangles endpoint URIs for unequal number of tokens

     [ https://issues.apache.org/jira/browse/CAMEL-11113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-11113.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.19.0

There is a fix now, and I added a TODO to revisit the logic in the future

> Camel catalog's asEndpointUri mangles endpoint URIs for unequal number of tokens
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-11113
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11113
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-catalog, camel-core
>            Reporter: Zoran Regvart
>            Assignee: Zoran Regvart
>             Fix For: 2.19.0
>
>
> 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:
> {code:java}
> "rest:GET:/path:/template/{param}"
> {code}
> but it ends up being:
> {code:java}
> "rest:GET:/path:/template/{param"
> {code}
> as the number of tokens ({{:}}, {{:/}}, {{:/}}, {{&#123;}}, {{&#125;}}) is 5, and the number of properties specified ({{rest}}, {{GET}}, {{/path}}, {{/template/&#123;param&#125;}}) is 4



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)