Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4116

Equal URI templates should use a string comparison as the last step

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.7, 2.5.3, 2.6
    • JAX-RS
    • None
    • Unknown

    Description

      JAX-RS 1.1 Selection algorithm does not say what needs to be done when 2 URI templates are equal after 3 checks (number of 1. literals, 2. vars & 3. custom vars) are done. CXF assumes both are equal candidates, Jersey finishes with the string comparison.

      Note, this 4th step (string comparison) does not make sense in all but few cases where only custom regular expressions are involved due to the fact that steps 1-3 are sufficient in most cases and when it needs to be done we are at the stage where the choice between 2 candidates is completely random... For the interop & portability purposes, it makes sense to add a string comparison...JAX-RS 2.0 requesting the clarification in the spec is to be created too.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: