]
Katia Aresti updated ISPN-9749:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
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
Assignee: 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.