Gustavo Fernandes created ISPN-12315:
----------------------------------------
Summary: Protostream transcoder can't handle Content-type with java
primitive types
Key: ISPN-12315
URL:
https://issues.redhat.com/browse/ISPN-12315
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 11.0.3.Final
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d
'{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}'
http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object;
type=java.lang.Integer" -H "Content-Type: application/x-java-object;
type=java.lang.Integer" -d '1'
"http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)