Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18908

cmis:description must not be read-only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0-HF27, 7.10-HF05, 8.2
    • Component/s: CMIS

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: