camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11113) Camel catalog's asEndpointUri mangles endpoint URIs for unequal number of tokens
Date Wed, 05 Apr 2017 14:03:41 GMT

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

ASF GitHub Bot commented on CAMEL-11113:
----------------------------------------

GitHub user zregvart opened a pull request:

    https://github.com/apache/camel/pull/1598

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

    **Work in progress, please don't merge**
    
    This illustrates a number of issues when constructing the endpoint URI from Camel catalog.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zregvart/camel CAMEL-11113

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1598.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1598
    
----
commit 9780195a4da306373d874552e92f9b0c80e8e3c5
Author: Zoran Regvart <zregvart@apache.org>
Date:   2017-04-05T14:01:33Z

    CAMEL-11113 added unit tests

----


> 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 ({{:}}, {{:/}}, {{:/}}, {{&#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)

Mime
View raw message