You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/21 14:51:00 UTC

[jira] [Commented] (CAMEL-11576) camel-catalog is not generating camel-stream URI properly

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

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

GitHub user adessaigne opened a pull request:

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

    CAMEL-11576 - Refactor endpoint syntax handling in order to support camel-stream component

    

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

    $ git pull https://github.com/adessaigne/camel CAMEL-11576

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

    https://github.com/apache/camel/pull/1840.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 #1840
    
----
commit 3bc2ef81352a925fdbf38365f6e889cc7deafd14
Author: Antoine DESSAIGNE <an...@gmail.com>
Date:   2017-07-21T14:48:30Z

    CAMEL-11576 - Refactor endpoint syntax handling in order to support camel-stream component

----


> camel-catalog is not generating camel-stream URI properly
> ---------------------------------------------------------
>
>                 Key: CAMEL-11576
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11576
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-catalog
>            Reporter: Antoine DESSAIGNE
>
> The endpoint URI generation in {{camel-catalog}} doesn't work for the {{camel-stream}} component. Here is an extract of the {{camel-stream.json}} file with only relevant information for this bug
> {code}
> {
>  "component": {
>     "syntax": "stream:kind",
>   },
>   "properties": {
>     "kind": { "kind": "path", "enum": [ "in", "out", "err", "header", "file", "url" ] },
>     "url": { "kind": "parameter" },
>   }
> }
> {code}
> The key point is that one of the value for the {{kind}} property that is in the path is {{url}} which is also query parameter.
> For instance the following code
> {code}
> Map<String, String> map = new LinkedHashMap<>();
> map.put("kind", "url");
> map.put("url", "http://camel.apache.org");
> String uri = catalog.asEndpointUri("stream", map, false);
> {code}
> will return
> {code}
> stream:http://camel.apache.org
> {code}
> instead of
> {code}
> stream:url?url=http://camel.apache.org
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)