-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Not A Bug
-
Affects Version/s: 3.0.0
-
Fix Version/s: None
-
Component/s: API
-
Environment:Nuxeo LTS 2021
-
Tags:
-
Backlog priority:500
-
Sprint:nxplatform next
When updating a document with a non-administrator user with operation Document.Update, it fails with this error:
Exception in thread "main" org.nuxeo.client.spi.NuxeoClientRemoteException: HTTP/400: Cannot set the value of property: dc:creator since it is readonly
This happens with a LTS 2021 Nuxeo instance only and whatever the Java client version used.
The following code fails:
Document doc = nuxeoClient.schemas("dublincore", "file").repository().fetchDocumentByPath("PATH_TO_DOCUMENT_HERE"); doc = nuxeoClient.operation("Document.Update") .param("properties", "dc:description=descr1") .input(doc) .execute();
Workaround:
doc.setPropertyValue("dc:description", "descr1"); doc = doc.updateDocument();
- is related to
-
NXP-27531 Allow non-Administrators to create documents
- Resolved
-
NXDOC-2555 Update java client documentation about automation and document usage
- Resolved