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

Query param are encoded twice #362

@ptrepkaVL

Description

@ptrepkaVL

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions