[ 
https://issues.apache.org/jira/browse/CAMEL-22155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956996#comment-17956996
 ] 

Jiri Ondrusek edited comment on CAMEL-22155 at 6/9/25 12:43 PM:
----------------------------------------------------------------

The same issue is happening in some other CEQ's test modules (the whole list is 
enumerated in [https://github.com/apache/camel-quarkus/issues/7430])
* 
[main-xml-io|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/main-xml-io]
* 
[main-xml-jaxb|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/main-xml-jaxb]
* and the test  _CamelMainRoutesIncludePatternWithDefaultLocationsDevModeTest_ 
from 
[main-devmode|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/main-devmode]


was (Author: jondruse):
The same issue is happening in some other CEQ's test modules (the whole list is 
enumerated in [https://github.com/apache/camel-quarkus/issues/7430)]
* 
[main-xml-io|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/main-xml-io]
* 
[main-xml-jaxb|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/main-xml-jaxb]
* and the test  _CamelMainRoutesIncludePatternWithDefaultLocationsDevModeTest_ 
from 
[main-devmode|https://github.com/apache/camel-quarkus/tree/camel-main/integration-tests/main-devmode]

> Detection od duplicated routeIDs might cause an issue with the inlined routes
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-22155
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22155
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 4.12.0, 4.13.0
>            Reporter: Jiri Ondrusek
>            Priority: Major
>
> I see the weird behavior in Camel Quarkus with fix CAMEL-22141
>  
> The issue can be easily simulated by running 
> [CoreMainXmlIoTest|https://github.com/apache/camel-quarkus/blob/camel-main/integration-tests/main-xml-io/src/test/java/org/apache/camel/quarkus/main/CoreMainXmlIoTest.java]
>  from _camel-main_ branch of Camel Quarkus. (here is the CI 
> [failure|https://github.com/apache/camel-quarkus/actions/runs/15484806730/job/43598084479])
>  
> There is a rest-dsl configuration:
> {code:java}
> <rest id="greet" path="/greeting">
>     <get path="/hello">
>         <to uri="direct:greet"/>
>     </get>
> </rest> {code}
> and a route in xml-dsl:
> {code:java}
> <route id="rest-route">
>     <from uri="direct:greet"/>
>     <setBody>
>         <constant>Hello World!</constant>
>     </setBody>
> </route> {code}
> I see in debug, that the route _from direct:greet_ is configured as the first 
> route with id {_}rest-route{_}. 
> Then the _rest:greeting_ is added as a second one. Route is marked as inlined 
> and the id of the route is set to _rest-route_  (see 
> [code|https://github.com/apache/camel/blob/main/core/camel-core-engine/src/main/java/org/apache/camel/impl/DefaultModel.java#L255])
>  because route is marked to be inlined.
>  
> The fix of CAMEL-22141 detects the duplicated ids and fails camel to start.
>  
> From my POV, this looks like a bug. WDYT [~davsclaus] ?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to