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

Ambiguous URI in Rest API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.2
    • 2.16.0, 2.15.4
    • camel-servlet, rest
    • None
    • Windows 7, Java 8, Tomcat 8

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: