-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List<PathSegment> exception on RESTEasy Reactive #17034
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
Can you give an example of how you expect this to work? |
I thought this would be confusing at first too, but the spec gives this example: https://quarkus.io/specs/jaxrs/2.1/index.html#uritemplates
From which we can guess that a Either the TCK doesn't test for this, or we disabled that test. Not sure how easy it would be to support this, or how useful. I wonder if it would make as much sense to support |
I'm facing the same error while trying to convert registry.quarkus.io to RestEasy Reactive. @GET
@Path("{path:.+}")
public Response handleArtifactRequest(
@PathParam("path") List<PathSegment> pathSegments,
@Context UriInfo uriInfo) {
...
} |
Fixes quarkusio#17034 (cherry picked from commit d83e522)
Describe the bug
As I asked in Zulip, I wanted to use
List<PathSegment>
with RESTEasy Reactive extension to use @PathParam and Regular Expressions. i.e. @path("{keyword:.*}")https://docs.jboss.org/resteasy/docs/4.6.0.Final/userguide/html_single/index.html#_PathParam_and_PathSegment
But I'm getting exceptions as below:
https://github.com/tedwon/quarkus-resteasy-reactive-with-pathsegment/blob/master/README.adoc
It is working properly with
@PathParam("id") PathSegment id
:https://github.com/tedwon/quarkus-resteasy-reactive-with-pathsegment/blob/master/src/main/java/org/acme/getting/started/ReactiveGreetingResource.java#L51-L55
However, getting errors
java.lang.RuntimeException: Failed to find converter for javax.ws.rs.core.PathSegment
with@PathParam("keyword") List<PathSegment> keywords
while startup Quarkus.https://github.com/tedwon/quarkus-resteasy-reactive-with-pathsegment/blob/master/src/main/java/org/acme/getting/started/ReactiveGreetingResource.java#L57-L61
Note that it is working properly for the same code with List on my other Quarkus app with quarkus-resteasy extension.
Expected behavior
No exception for the usage of List with quarkus-resteasy extension
Actual behavior
To Reproduce
Please run this reproducer project:
https://github.com/tedwon/quarkus-resteasy-reactive-with-pathsegment
Quarkus version or git rev
QUARKUS 1.13.3
The text was updated successfully, but these errors were encountered: