bliblidotcom / blibli-backend-framework

Blibli.com Backend Framework
https://www.blibli.com/
Apache License 2.0
75 stars 13 forks source link

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

Open adhikasp opened 4 years ago

adhikasp commented 4 years ago

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.