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

camel-core - route dump dose not print correct route with kamelet eip

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11.0
    • 3.11.1, 3.12.0
    • camel-core
    • None
    • Unknown

    Description

      Using route dump option of camel context does not print the correct route in case of using kamelet eip.

      Find the reproducer here: https://github.com/valdar/camel/tree/issue/16818

      run:

      ./mvnw clean verify -pl :camel-kamelet -Dtest=KameletRouteDumpTest
      

      the test will pass but in the test log that you can find in components/camel-kamelet/target/camel-kamelet-test.log this is what is printed as route:

      <routes xmlns="http://camel.apache.org/schema/spring">
      
          <route customId="true" id="test">
              <from uri="direct:templateEmbedded"/>
              <kamelet id="kamelet1" name="setBody?bodyValue=test"/>
          </route>
      
          <route customId="true" id="setBody-1" template="true">
              <from uri="kamelet://source?routeId=setBody-1"/>
              <setBody id="setBody1">
                  <constant>{{bodyValue}}</constant>
              </setBody>
              <to id="to2" uri="kamelet://sink?routeId=setBody-1"/>
          </route>
      
      </routes>
      

      but there should be a to(...) statement after <kamelet id="kamelet1" name="setBody?bodyValue=test"/> in the route with id=test.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            valdar Andrea Tarocchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: