jungm commented on code in PR #2983:
URL: https://github.com/apache/cxf/pull/2983#discussion_r3036553714
##########
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriInfoImpl.java:
##########
@@ -246,22 +246,26 @@ public URI resolve(URI uri) {
@Override
public String getMatchedResourceTemplate() {
if (stack != null) {
- final List<URITemplate> templates = new LinkedList<>();
+ String matchedResourceTemplate = (String)
message.getExchange().getEndpoint()
Review Comment:
@reta just let this run through the TCK in TomEE again now, these tests look
good (ignoring app path prefix):
```
04-05-2026 09:34:07:[WebValidatorBase] Unable to find the following search
string in the server's response: '/app/resource/three/{x:[a-z]}/{x:[a-z]}' at
index: 0
[WebValidatorBase] Server's response:
-------------------------------------------
/resource/three/{x:[a-z]}/{x:[a-z]}
-------------------------------------------
```
```
04-05-2026 09:34:07:[WebValidatorBase] Unable to find the following search
string in the server's response:
'/app/resource/one/{name:[a-zA-Z][a-zA-Z_0-9]*}' at index: 0
[WebValidatorBase] Server's response:
-------------------------------------------
/resource/one/{name:[a-zA-Z][a-zA-Z_0-9]*}
-------------------------------------------
```
However in these there seems to be a whitespace in the `@Path` annotations
that is being lost, probably another issue that is out of scope for now?
```
04-05-2026 09:34:07:[WebValidatorBase] Unable to find the following search
string in the server's response: '/app/resource/two/{Prefix}{p:/?}{id:
((\d+)?)}/abc/{yeah}' at index: 0
[WebValidatorBase] Server's response:
-------------------------------------------
/resource/two/{Prefix}{p:/?}{id:((\d+)?)}/abc/{yeah}
-------------------------------------------
```
```
04-05-2026 09:34:07:[WebValidatorBase] Unable to find the following search
string in the server's response: '/app/resource/two/{Prefix}{p:/?}{id:
((\d+)?)}/abc{p2:/?}{number: (([A-Za-z0-9]*)?)}' at index: 0
[WebValidatorBase] Server's response:
-------------------------------------------
/resource/two/{Prefix}{p:/?}{id:((\d+)?)}/abc{p2:/?}{number:(([A-Za-z0-9]*)?)}
-------------------------------------------
```
--
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]