Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiClient doesn't encode URI with proper URI EncodingMethod #32

Open
adhikasp opened this issue Jun 10, 2020 · 0 comments
Open

ApiClient doesn't encode URI with proper URI EncodingMethod #32

adhikasp opened this issue Jun 10, 2020 · 0 comments

Comments

@adhikasp
Copy link

For example I have apiClientX with following path:
/get?query[id][is]=xyz and abc

xyz and abc is URI values, passed through api client method interface.

And I set DefaultUriBuilderFactory.EncodingMode=VALUES_ONLY.

Then send the request...

Expectation
/get?query[id][is]=xyz+and+abc
(url template is NOT encoded, url values is encoded)

Actual
/get?query[id][is]=xyz and abc
(url template is NOT encoded, url values is NOT encoded)

Current workaround
Encode the xyz and abc manually with java URI encoder method before passing it to apiClientX.

Will fill up later for sample code.

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

No branches or pull requests

1 participant