You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/07/28 05:19:00 UTC

[jira] [Resolved] (CAMEL-16818) camel-core - route dump dose not print correct route with kamelet eip

     [ https://issues.apache.org/jira/browse/CAMEL-16818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-16818.
---------------------------------
    Fix Version/s: 3.11.1
       Resolution: Fixed

> camel-core - route dump dose not print correct route with kamelet eip
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-16818
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16818
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.11.0
>            Reporter: Andrea Tarocchi
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.11.1, 3.12.0
>
>
> 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:
> {code:bash}
> ./mvnw clean verify -pl :camel-kamelet -Dtest=KameletRouteDumpTest
> {code}
> 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:
> {code:xml}
> <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>
> {code}
> but there should be a {{to(...)}} statement after {{<kamelet id="kamelet1" name="setBody?bodyValue=test"/>}} in the route with {{id=test}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)