You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug seems to be similar to #18542 but is happening in regular quarkus-resteasy.
I have a resourceA with
@Path("test")
public class ResourceA {
@GET
@Path("{testId}")
public String getString(@PathParam("testId") final long testId) {
return "hello this is test from resource A";
}
}
and a resourceB with
@Path("test/{testId}")
public class ResourceB {
// no GET endpoint here
}
and this leads to 404 NOT Found when I perform a GET /test/1234, even though it should be able to find the method in ResourceA.
If I remove the /{testId} from ResourceB's path it works as expected.
Expected behavior
All classes should be scanned for matching endpoints and it should be able to find the request when it exists in another resource class.
Actual behavior
Getting 404 not found if the method is not present in the resource with the most specific path that matches the request.
How to Reproduce?
No response
Output of uname -a or ver
Linux laptop-XXXX 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
This bug seems to be similar to #18542 but is happening in regular
quarkus-resteasy
.I have a resourceA with
and a resourceB with
and this leads to 404 NOT Found when I perform a GET /test/1234, even though it should be able to find the method in ResourceA.
If I remove the
/{testId}
from ResourceB's path it works as expected.Expected behavior
All classes should be scanned for matching endpoints and it should be able to find the request when it exists in another resource class.
Actual behavior
Getting 404 not found if the method is not present in the resource with the most specific path that matches the request.
How to Reproduce?
No response
Output of
uname -a
orver
Linux laptop-XXXX 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.2" 2022-01-18
GraalVM version (if different from Java)
No response
Quarkus version or git rev
<quarkus.platform.version>2.11.3.Final</quarkus.platform.version>
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.5
Additional information
No response
The text was updated successfully, but these errors were encountered: