[
https://issues.apache.org/jira/browse/CAMEL-11576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16096458#comment-16096458
]
ASF GitHub Bot commented on CAMEL-11576:
----------------------------------------
Github user adessaigne closed the pull request at:
https://github.com/apache/camel/pull/1840
> 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)