eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
681 stars 340 forks source link

Issue when injecting @QueryParam values when the URL query string has percentage encoded & #5691

Open The-East-Wind opened 5 days ago

The-East-Wind commented 5 days ago

Issue

I have a resource like:

@GET 
@Path("/foobar")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Response get(@QueryParam("x") String x, @QueryParam("y") String y, @QueryParam("z") String z) {
}

If I call this resource with /foobar?x=a%26y=b%26z=c then x get assigned with the value a%26y=b%26z=c and y and z are set to null.

Servlet container: Tomcat 9 Jersey Version: 2.19 Java Version: 1.8