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

Willem Jiang resolved CAMEL-7952.
---------------------------------
       Resolution: Duplicate
    Fix Version/s: 2.15.0
                   2.14.1
         Assignee: Willem Jiang

Please try to use the latest Camel 2.14.1-SNAPSHOT which already has the fix 
patch.

> Camel REST does not handle same path with differents VERBS
> ----------------------------------------------------------
>
>                 Key: CAMEL-7952
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7952
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.0
>         Environment: ALL
>            Reporter: Pierre-Alban DEWITTE
>            Assignee: Willem Jiang
>             Fix For: 2.14.1, 2.15.0
>
>
> If we had the same path with different verbs (GET, POST, DELETE) only one is 
> randomly choosen.
> To reproduce this issue i just changed the route builder in 
> camel-example-servlet-rest-tomcat.
> In UserRouteBuilder.java change the last statement  of configure() method  
> with :
>         rest("/user").description("User rest service")
>             .consumes("application/json").produces("application/json")
>             .get("/name").description("GET").outTypeList(User.class)
>                 .to("bean:userService?method=listUsers")
>             
> .post("/name").description("POST").to("bean:userService?method=listUsers")
>             
> .delete("/{name}").description("DELETE").to("bean:userService?method=listUsers")
>                 ;
> After a quick debug it seams that the CamelServlet is fiiling a map of 
> HttpConsumer. The key is path so only last one can be used further.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to