-
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
Can't use Optional with List with @QueryParam with reasteasy controller #23898
Milestone
Comments
Plawn
changed the title
Can't use Optional with List with @QueryParam
Can't use Optional with List with @QueryParam with reasteasy controller
Feb 23, 2022
/cc @FroMage, @stuartwdouglas |
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Mar 2, 2022
Support use when using query params with some collections. Example: ```java @path("/list") @get public String sayHelloToList(@QueryParam("name") final Optional<List<String>> names) { return doSayHelloToCollection(names); } ``` fix quarkusio#23898
fyi: I've proposed a solution for this issue in #24055 |
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Mar 2, 2022
Support use when using query params with some collections. Example: ```java @path("/list") @get public String sayHelloToList(@QueryParam("name") final Optional<List<String>> names) { return doSayHelloToCollection(names); } ``` fix quarkusio#23898
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Mar 2, 2022
Support use when using query params with some collections. Example: ```java @path("/list") @get public String sayHelloToList(@QueryParam("name") final Optional<List<String>> names) { return doSayHelloToCollection(names); } ``` fix quarkusio#23898
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Mar 7, 2022
Support use when using query params with some collections. Example: ```java @path("/list") @get public String sayHelloToList(@QueryParam("name") final Optional<List<String>> names) { return doSayHelloToCollection(names); } ``` fix quarkusio#23898 (cherry picked from commit 9dd7f7b)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using @QueryParam("name") Optional<List> in a resteasy reactive controller, we get an error:
When used without Optional we don't get this error.
This works:
Expected behavior
We can use an Optional<List> in a resteasy reactive controller
Actual behavior
We get a compilation error
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
tested with 2.6.3.Final and tested in 2.7.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: