cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7527) JAXRS UriInfo.getMatchedUris does return matched URIs twice for sub resources
Date Fri, 10 Nov 2017 16:23:00 GMT

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

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

andymc12 commented on issue #337: [CXF-7527] getMatchedURIs to avoid duplicate URIs
URL: https://github.com/apache/cxf/pull/337#issuecomment-343518296
 
 
   It looks like "we got lucky".  There are tests in the TCK for getMatchedURIs, but it looks
like it only checks for (1) is the name of the resource and the name of the path in the annotation
on the method both in the path (but does not check for slashes) and (2) the size of the returned
List (however every resource method in the tests also have the Path annotation, so all of
the tested scenarios worked - had they tested for a case where there is no Path annotation,
we would have failed).

----------------------------------------------------------------
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:
users@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)

Mime
View raw message