[ 
https://issues.apache.org/jira/browse/CXF-7527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16246964#comment-16246964
 ] 

ASF GitHub Bot commented on CXF-7527:
-------------------------------------

andymc12 opened a new pull request #337: [CXF-7527] getMatchedURIs to avoid 
duplicate URIs
URL: https://github.com/apache/cxf/pull/337
 
 
   The UriInfo.getMatchedURIs method currently returns "duplicate" URI
   entries when called from a method that is not annotated with an
   @Path annotation. The "duplicate" URI is basically the same URI but
   with a trailing slash. This was first discovered when using sub
   resource locators, but could also occur in simpler scenarios (like
   a resource method annotated with @GET but not @Path). 
   
   When comparing against the javadoc and the RI, it looks like the
   URIs we were returning started with a slash, where the RI and
   javadoc examples do not. This commit removes the starting slash as
   well.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> JAXRS UriInfo.getMatchedUris does return matched URIs twice for sub resources
> -----------------------------------------------------------------------------
>
>                 Key: CXF-7527
>                 URL: https://issues.apache.org/jira/browse/CXF-7527
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.12
>            Reporter: Lenoire
>         Attachments: uriinfo-issues.jar
>
>
> Invoking method {{UriInfo.getMatchedURIs()}} return matched resource URI 
> twice when invoked from SubResource method.
> See attachment for a junit test reproducing the issue (=> 
> {{testMatchedUrisFromSubResource()}}) 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to