Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch Available
-
Unknown
Description
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
{ "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", "http://camel.apache.org"); String uri = catalog.asEndpointUri("stream", map, false);
will return
stream:http://camel.apache.org
instead of
stream:url?url=http://camel.apache.org
Attachments
Issue Links
- links to