Inconsistent path matching when two resources share a prefix #30854
Labels
area/rest
kind/bug
Something isn't working
triage/duplicate
This issue or pull request already exists
Describe the bug
When there are two resource classes with a shared path prefix, RESTEasy Reactive incorrectly returns a 404 response. This behavior is different in RESTEasy classic, where requests to both resources return a 200 response.
Expected behavior
I'm not sure what the correct behavior is according to JAX-RS spec. In my opinion requests to
/chat/messages
and/chat/messages/1
should return a 200 response with both RESTEasy Classic and RESTEasy Reactive.Actual behavior
How to Reproduce?
Minimal reproducing project: code-with-quarkus.zip
Test failure:
mvn -f pom.xml clean test
Tests succeed:
mvn -f pom-resteasy-classic.xml clean test
Output of
uname -a
orver
CYGWIN_NT-10.0-22000 DESKTOP-5J3QD5D 3.4.3-1.x86_64 2022-12-16 12:38 UTC x86_64 Cygwin
Output of
java -version
java version "17.0.3.1" 2022-04-22 LTS Java(TM) SE Runtime Environment (build 17.0.3.1+2-LTS-6) Java HotSpot(TM) 64-Bit Server VM (build 17.0.3.1+2-LTS-6, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6
Additional information
As an additional data point, the resource paths on the Quarkus 404 error page and in the dev UI.
The text was updated successfully, but these errors were encountered: