Open adhikasp opened 4 years ago
For example I have apiClientX with following path: /get?query[id][is]=xyz and abc
apiClientX
/get?query[id][is]=xyz and abc
xyz and abc is URI values, passed through api client method interface.
xyz and abc
And I set DefaultUriBuilderFactory.EncodingMode=VALUES_ONLY.
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)
/get?query[id][is]=xyz+and+abc
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.
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 toapiClientX
.Will fill up later for sample code.