Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9749

Rest PUT fails to replace value when storing pojos without equality

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 9.2.4.Final, 9.3.5.Final, 9.4.1.Final
    • None
    • None

      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.

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: