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/07/21 16:33:01 UTC

[jira] [Resolved] (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:all-tabpanel ]

Claus Ibsen resolved CAMEL-11576.
---------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.20.0
                   2.19.2

Thanks for the PR

> 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
>            Assignee: Claus Ibsen
>             Fix For: 2.19.2, 2.20.0
>
>
> 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)