When a proxy has an attached schema (NXP-11562) and a saveDocument is called on it, if the dublincore listener is activated (the default) then save will fail:
Caused by: org.nuxeo.ecm.core.api.ClientException: failed to write document part at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:305) at org.nuxeo.ecm.core.api.AbstractSession.writeModel(AbstractSession.java:558) at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1981) Caused by: org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentVersion$VersionNotModifiableException: Cannot set property on a version: dc:modified = java.util.GregorianCalendar[...] at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentVersion.setPropertyValue(SQLDocumentVersion.java:254) at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.writeDocumentPart(SQLDocumentLive.java:178) at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentProxy.writeDocumentPart(SQLDocumentProxy.java:193) at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:299) ... 151 more
- depends on
-
NXP-11562 Allow attaching schemas to proxies
- Resolved