eclipse-ee4j / eclipse-ee4j/jersey

queryParam doesn't encode value which is a list of item separated by the space

Open
#3,350 3 comments 0 reactions 0 assignees View on GitHub
Component: core Priority: Major Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

If the request URI is something like:

```
http://localhost:8080/api?queryParam={type:[A+B]}
```

The following code doesn't work in Jersey 1.19, but it was working with 1.17

```
String query = "[A B]";
queryParams.add("type", query);
resource.queryParams(queryParams).accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
```
#### Affected Versions
[1.19]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.