-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: CMIS
The CMIS 1.1 cmis:description property is exposed as read-write in the type definition but internally the code fails to allow modification and throws on the client side:
org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Read-only property: cmis:description at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:503) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:698) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.put(AbstractAtomPubService.java:685) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.updateProperties(ObjectServiceImpl.java:352) at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:400) at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:363)
And on the server side:
org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Read-only property: cmis:description at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyDataBase.setValue(NuxeoPropertyDataBase.java:99) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoPropertyData.setValue(NuxeoPropertyData.java:551) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.setObjectProperty(NuxeoCmisService.java:676) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.setObjectProperty(NuxeoCmisService.java:661) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.updateProperties(NuxeoCmisService.java:619) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.updateProperties(NuxeoCmisService.java:1106) at org.nuxeo.ecm.core.opencmis.impl.server.NuxeoCmisService.updateProperties(NuxeoCmisService.java:1092)
A workaround is to use dc:description.