[ 
https://issues.apache.org/jira/browse/CAMEL-11113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15958674#comment-15958674
 ] 

Claus Ibsen commented on CAMEL-11113:
-------------------------------------

Thanks for the test case I am working on a fix

> 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
>
> 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 ({{:}}, {{:/}}, {{:/}}, {{{}}, {{}}}) is 5, 
> and the number of properties specified ({{rest}}, {{GET}}, {{/path}}, 
> {{/template/{param}}}) is 4



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

Reply via email to