[
https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi...
]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Description:
was:
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}
When trying to change the existing value under the same key to another integer value:
{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 '2'
"http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
it throws an error: "No marshaller registered for Java type java.lang.Integer"
REST server can't handle entry changes encoded as java primitive
----------------------------------------------------------------
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
Priority: Major
--
This message was sent by Atlassian Jira
(v7.13.8#713008)