rzo1 commented on code in PR #2983:
URL: https://github.com/apache/cxf/pull/2983#discussion_r2983646564


##########
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriInfoImpl.java:
##########
@@ -246,22 +248,30 @@ public URI resolve(URI uri) {
     @Override
     public String getMatchedResourceTemplate() {
         if (stack != null) {
-            final List<URITemplate> templates = new LinkedList<>();
+            String matchedResourceTemplate = getBaseUri().getPath();
+
+            if (HttpUtils.isHttpRequest(message)) {

Review Comment:
   Looking at 
https://jakarta.ee/specifications/restful-ws/4.0/apidocs/jakarta.ws.rs/jakarta/ws/rs/core/uriinfo#getMatchedResourceTemplate()
 - I think @reta is right. The Javadoc lists an example on what to expect (it 
doesn't mention the servlet context path).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to