[infinispan-issues] [JBoss JIRA] (ISPN-9749) Rest PUT fails to replace value when storing pojos without equality
Gustavo Fernandes (Jira)
issues at jboss.org
Tue Nov 20 08:38:02 EST 2018
[ https://issues.jboss.org/browse/ISPN-9749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gustavo Fernandes updated ISPN-9749:
------------------------------------
Affects Version/s: 9.4.1.Final
9.3.5.Final
9.2.4.Final
> Rest PUT fails to replace value when storing pojos without equality
> -------------------------------------------------------------------
>
> Key: ISPN-9749
> URL: https://issues.jboss.org/browse/ISPN-9749
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.2.4.Final, 9.3.5.Final, 9.4.1.Final
> Reporter: Gustavo Fernandes
> Priority: Major
>
> According to the documentations, when doing a REST PUT, "Any existing data will be replaced", but when the cache is configured to store "application/x-java-object" (unserialized objects) and the object does not implement the equals method, the replace always fails and the server returns HTTP 412 (precondition failed).
> This is due to the fact that internally the REST server first retrieves the existing value, and then does a conditional replace with this value that never matches.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list