-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Describe the bug
@GET @Path("/hello") @Produces(MediaType.APPLICATION_JSON) public Object hello(@QueryParam Long userId) { return userId; }
if my request param is nothing and the url will be
http://localhost:8080/hello?userId=
Expected behavior
return null
or
return 0
Actual behavior
return nothing
the error is
Unable to extract parameter from http request: jakarta.ws.rs.QueryParam("userId") value is '' for public java.lang.Object xxx
- duplicates
-
RESTEASY-3305 Unable to extract null to numerical parameter
- Closed
- is incorporated by
-
QUARKUS-3926 Upgrade RESTEasy to 6.2.7.Final
- Verified
-
WFLY-18916 Upgrade RESTEasy from 6.2.6.Final to 6.2.7.Final
- Closed
- links to