Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Query param are encoded twice #362

Closed
ptrepkaVL opened this issue Dec 4, 2020 · 0 comments
Closed

Query param are encoded twice #362

ptrepkaVL opened this issue Dec 4, 2020 · 0 comments
Assignees

Comments

@ptrepkaVL
Copy link

Hello,

There was a ticket #279 which should fix the problem but I was done incorrectly and it still doesn't work.

There is a class QueryParamEncodedPair which return encoded value

public String getValue() {
    return UriUtils.encodeQueryParam(this.origin.getValue(), StandardCharsets.UTF_8);
}

Then this class is used when uri is build by uri builder:
class FpEndpoint -> method get:

URIBuilder builder = new URIBuilder(this.endpoint + path);
builder.setParameters(new ListOf(parameters));
HttpUriRequest get = new HttpGet(builder.build());

And this builder.build encode parameters again. So instead of using QueryParamEncodedPair there should be BasicNameValuePair class passed to this method.
Can you change it?

Best regards,
Przemek

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants