[ https://issues.apache.org/jira/browse/CAMEL-13651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866427#comment-16866427 ]
Jonathan Vila commented on CAMEL-13651: --------------------------------------- [~davsclaus] I will search for the issue and try to backport for 2.23.x > Rest DSL seems to duplicate the routes, therefore we can experience on having > duplicated ids issues > --------------------------------------------------------------------------------------------------- > > Key: CAMEL-13651 > URL: https://issues.apache.org/jira/browse/CAMEL-13651 > Project: Camel > Issue Type: Bug > Affects Versions: 2.21.0 > Reporter: Jonathan Vila > Priority: Major > > Having this route : > {code:java} > rest() > .post("/upload/{customerID}") > .to("direct:upload") > .get("/health") > .to("log:health") > .get("/info") > .to("log:info"); > {code} > When I inspect *camelContext.getRoutes()* I see route1, route2, route3, > post1, get1, get2 and route1 is identical to post1, and so on. > So , if I try to assign an id to a route : > {code:java} > rest() > .id("rest-route") > .get("/health") > .id("get-health") > .to("log:health") > .post("/uploadXX/{customerID}") > .id("post-upload") > .to("direct:upload") > .get("/info") > .id("get-info") > .to("log:info"); > {code} > Then I get an error : Failed to start route get-health because of duplicate > id detected: get-health > The motivation to give ids to rest routes is to test only one at a time. I do > that using *@AdviceWith* and then *camelContext.startRoute("post1")* > -- This message was sent by Atlassian JIRA (v7.6.3#76005)