-
Bug
-
Resolution: Done
-
Minor
-
6.2.1.Final
-
None
-
None
RESTEasy is considering empty collections in query parameters for building the URL. This leads to strange results. E.g. http://www.something.org/someResource?& in the example below:
public class Reproducer { @Path("someResource") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public interface SomeResource { @GET void methodWIthList(@QueryParam("listA") List<String> listA, @QueryParam("listB") List<String> listB); } public static void main(String[] args) { ResteasyClientBuilder builder = (ResteasyClientBuilder) ClientBuilder.newBuilder(); builder.httpEngine(new ClientHttpEngine() { @Override public Response invoke(Invocation request) { System.out.println(((ClientInvocation) request).getUri()); // http://www.something.org/someResource?& return new AbortedResponse(null, new ServerResponse()); } @Override public SSLContext getSslContext() { return null; } @Override public HostnameVerifier getHostnameVerifier() { return null; } @Override public void close() {} }).build().target("http://www.something.org").proxy(SomeResource.class).methodWIthList(List.of(), List.of()); } }
- is incorporated by
-
WFLY-18005 Upgrade RESTEasy to 6.2.4.Final
- Closed