[
https://issues.apache.org/jira/browse/TOMEE-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Thomas updated TOMEE-4481:
--------------------------------
Description:
After changes made in TOMEE-4406 / [PR
#1524|https://github.com/apache/tomee/pull/1524], JAX-RS endpoints e.g. under
{{/api/\*}} are no longer accessible when there's also a servlet mapped to
{{{}/\*{}}}. The PR appears to have changed how
{{CxfRsHttpListener#isCXFResource}} evaluates requests, causing it to return
{{false}} for REST endpoints when it previously returned {{{}true{}}}.
Demo: [https://github.com/byte0ne/tomee-10-servlet-jaxrs]
When accessing "{color:#1f2328}/api/hello{color}"
TomEE 9.1.3 → JSON response from REST endpoint
TomEE 10.0.x → HTML response from the wildcard servlet
was:
After changes made in TOMEE-4406 / [PR
#1524|https://github.com/apache/tomee/pull/1524], JAX-RS endpoints e.g. under
{{/api/*}} are no longer accessible when there's also a servlet mapped to
{{{}/*{}}}. The PR appears to have changed how
{{CxfRsHttpListener#isCXFResource}} evaluates requests, causing it to return
{{false}} for REST endpoints when it previously returned {{{}true{}}}.
Demo: [https://github.com/byte0ne/tomee-10-servlet-jaxrs]
When accessing "{color:#1f2328}/api/hello{color}"
TomEE 9.1.3 → JSON response from REST endpoint
TomEE 10.0.x → HTML response from the wildcard servlet
> JAX-RS Endpoints Not Accessible with Wildcard Servlet
> -----------------------------------------------------
>
> Key: TOMEE-4481
> URL: https://issues.apache.org/jira/browse/TOMEE-4481
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 10.0.1
> Reporter: Simon Thomas
> Priority: Major
>
> After changes made in TOMEE-4406 / [PR
> #1524|https://github.com/apache/tomee/pull/1524], JAX-RS endpoints e.g. under
> {{/api/\*}} are no longer accessible when there's also a servlet mapped to
> {{{}/\*{}}}. The PR appears to have changed how
> {{CxfRsHttpListener#isCXFResource}} evaluates requests, causing it to return
> {{false}} for REST endpoints when it previously returned {{{}true{}}}.
> Demo: [https://github.com/byte0ne/tomee-10-servlet-jaxrs]
> When accessing "{color:#1f2328}/api/hello{color}"
> TomEE 9.1.3 → JSON response from REST endpoint
> TomEE 10.0.x → HTML response from the wildcard servlet
--
This message was sent by Atlassian Jira
(v8.20.10#820010)