[
https://issues.apache.org/jira/browse/CXF-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-4116.
-----------------------------------
Resolution: Fixed
> Equal URI templates should use a string comparison as the last step
> -------------------------------------------------------------------
>
> Key: CXF-4116
> URL: https://issues.apache.org/jira/browse/CXF-4116
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
> Fix For: 2.4.7, 2.5.3, 2.6
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira