camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine DESSAIGNE (JIRA)" <>
Subject [jira] [Created] (CAMEL-11576) camel-catalog is not generating camel-stream URI properly
Date Fri, 21 Jul 2017 14:48:00 GMT
Antoine DESSAIGNE created CAMEL-11576:

             Summary: camel-catalog is not generating camel-stream URI properly
                 Key: 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
 "component": {
    "syntax": "stream:kind",
  "properties": {
    "kind": { "kind": "path", "enum": [ "in", "out", "err", "header", "file", "url" ] },
    "url": { "kind": "parameter" },

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
Map<String, String> map = new LinkedHashMap<>();
map.put("kind", "url");
map.put("url", "");
String uri = catalog.asEndpointUri("stream", map, false);
will return
instead of

This message was sent by Atlassian JIRA

View raw message