Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11576

camel-catalog is not generating camel-stream URI properly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.2, 2.20.0
    • Component/s: camel-catalog
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                antoine.dessaigne Antoine DESSAIGNE
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: