Hi,
If you do:
doc = (Document) session.getObjectByPath("/testfile1");
assertEquals("some title", doc.getPropertyValue("dc:title"));
doc.updateProperties(Collections.singletonMap("dc:title",
"other title"));
doc = (Document) session.getObjectByPath("/testfile1");
assertEquals("other title", doc.getPropertyValue("dc:title"));
The last assertion fails with the AtomPub and WebServices bindings,
because the persistent session cache is not updated.
Should updateProperties update or invalidate the cache? Or is it the
job of the caller to deal with this?
Florent
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87