-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10-HF57
-
Fix Version/s: 10.10-HF59, 11.x
-
Component/s: Binary Metadata
-
Release Notes Summary:Binary metadata synchronization is not run on versions.
-
Tags:
-
Backlog priority:750
-
Sprint:nxplatform #57
-
Story Points:2
Steps to reproduce:
- Configure async binary metadata update rules using XML extension attached
- In Web UI, navigate to a Picture document (sample Picture documents from nuxeo-showcase-content valid)
- Create an initial Version (either 0.1 or 1.0)
- Edit the Picture (e.g. modify the description field)
- Create a new Version of the same document
Expected behavior: Version is created without performing metadata sync/update
Actual behavior: Error is observed in server.log:
ERROR [WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-default-1, current work might be lost, WorkManager metrics might be corrupted. org.nuxeo.ecm.core.api.NuxeoException: Work failed after 0 retries, class=class org.nuxeo.binary.metadata.internals.BinaryMetadataUpdateWork id=BinaryMetadataUpdate|docId=704ac92e-1878-4d50-9211-60f9b16eaa22 category=binary_metadata_work title=Binary Metadata Update Worker at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:439) ~[nuxeo-core-event-10.10-HF57.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:395) ~[nuxeo-core-event-10.10-HF57.jar:?] at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-10.10-HF57.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: org.nuxeo.ecm.core.api.PropertyException: Cannot set property on a version: imd:copyright at org.nuxeo.ecm.core.storage.BaseDocument.checkReadOnlyIgnoredWrite(BaseDocument.java:304) ~[nuxeo-core-storage-10.10-HF55.jar:?] at org.nuxeo.ecm.core.storage.BaseDocument.writeComplexProperty(BaseDocument.java:888) ~[nuxeo-core-storage-10.10-HF55.jar:?] at org.nuxeo.ecm.core.storage.BaseDocument.writeDocumentPart(BaseDocument.java:855) ~[nuxeo-core-storage-10.10-HF55.jar:?] at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.writeDocumentPart(SQLDocumentLive.java:178) ~[nuxeo-core-storage-sql-10.10-HF55.jar:?] at org.nuxeo.ecm.core.api.DocumentModelFactory.writeDocumentModel(DocumentModelFactory.java:257) ~[nuxeo-core-10.10-HF57.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.writeModel(AbstractSession.java:374) ~[nuxeo-core-10.10-HF57.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.writeModel(AbstractSession.java:370) ~[nuxeo-core-10.10-HF57.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1622) ~[nuxeo-core-10.10-HF57.jar:?] at org.nuxeo.binary.metadata.internals.BinaryMetadataUpdateWork.work(BinaryMetadataUpdateWork.java:91) ~[nuxeo-binary-metadata-10.10-HF56.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:493) ~[nuxeo-core-event-10.10-HF57.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:383) ~[nuxeo-core-event-10.10-HF57.jar:?] ... 4 more