blibli-backend-framework icon indicating copy to clipboard operation
blibli-backend-framework copied to clipboard

ApiClient doesn't encode URI with proper URI EncodingMethod

Open adhikasp opened this issue 4 years ago • 0 comments

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.

adhikasp avatar Jun 10 '20 20:06 adhikasp