Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.15.2
-
Component/s: camel-servlet, rest
-
Labels:None
-
Environment:
Windows 7, Java 8, Tomcat 8
-
Estimated Complexity:Unknown
Description
Configuration of multiple URIs for the same method in a REST service containing wildcards and fixed parts does not work. Example:
<get uri="/{uuid}/meta" ...> <get uri="/{uuid}/{channel}" ...>
This causes ServletRestServletResolveConsumerStrategy.java to identify 2
consumerPath candidates (lines 70-77), which isn't handled afterwords (line 80). It probably should use the most specific one in this case.