[ https://issues.apache.org/jira/browse/CAMEL-10139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15873346#comment-15873346 ]
Scott Cranton commented on CAMEL-10139: --------------------------------------- Looks like in Undertow when you have for example /users and /users/{id} the code that adds the handlers is seeing those 2 paths (/users and /users/) as identical, and replacing the handler. In my unit test the /users/{id} handler wins, so the /users GET is no longer registered https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/util/PathMatcher.java#L118 This feels like a bug in Undertow > Multiple verbs for same resource not working in camel-undertow (rest dsl) > ------------------------------------------------------------------------- > > Key: CAMEL-10139 > URL: https://issues.apache.org/jira/browse/CAMEL-10139 > Project: Camel > Issue Type: Bug > Components: camel-undertow > Affects Versions: 2.17.1 > Reporter: Steve Storck > Assignee: Claus Ibsen > Fix For: 2.18.0 > > > The camel-undertow component does not seem to support multiple verbs for the > same resource when using the rest dsl. > {code:title=Rest DSL Example|borderStyle=solid} > rest("/example") > .get("{pathParamHere}").to("bean:exampleBean?method=handleGet") > .put("{pathParamHere}").to("bean:exampleBean?method=handlePut"); > {code} > The above example will result in only the "put" verb working, and the "get" > resource not found. -- This message was sent by Atlassian JIRA (v6.3.15#6346)