Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9089

Ambiguous URI in Rest API

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.2
    • Fix Version/s: 2.16.0, 2.15.4
    • 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.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              hubert.hesse Hubert Hesse
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: