]
Tristan Tarrant updated ISPN-11968:
-----------------------------------
Fix Version/s: 12.1.0.Final
(was: 12.0.0.Final)
Deprecate application/octet-stream encoding parameter in REST API
-----------------------------------------------------------------
Key: ISPN-11968
URL:
https://issues.redhat.com/browse/ISPN-11968
Project: Infinispan
Issue Type: Task
Components: REST
Affects Versions: 11.0.0.CR1
Reporter: Dan Berindei
Priority: Major
Fix For: 12.1.0.Final
The REST API allows a client to encode {{application/octet-stream}} keys and values
either in BASE64 or in an ad-hoc {{hex}} format, depending on the value of the
{{encoding}} parameter.
REST, being based on HTTP, offers a more natural encoding of
{{application/octet-stream}}:
* In the URI, the keys should be
[
percent-encoded|https://en.wikipedia.org/wiki/Percent-encoding]
* Even when listing the keys in the cache, and the keys appear in the body, it might be a
good idea to list the keys as relative URIs (therefore percent-encoded)
* The values only appear in the request/response body, so they should not be encoded at
all