Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-580 Fix failing TCK tests for CMIS-JCR bridge
  3. CMIS-618

This operation requires that the node be versionable (that is, isNodeType("mix:versionable") == true)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.9.0 beta 1
    • OpenCMIS 0.12.0
    • opencmis-server-jcr
    • None

    Description

      TCK executed with modeshape profile. Modeshape does not support mix:simpleVersionable.

      Stacktrace:
      org.apache.chemistry.opencmis.commons.exceptions.CmisStorageException: This operation requires that the node be versionable (that is, isNodeType("mix:versionable") == true)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractWebServicesService.convertException(AbstractWebServicesService.java:117)
      at org.apache.chemistry.opencmis.client.bindings.spi.webservices.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:86)
      at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:726)
      at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:88)
      at org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.createDocument(AbstractSessionTest.java:368)
      at org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.createDocument(AbstractSessionTest.java:335)

      Proposed fix:

      if(simpleVersionable supported)
         use simpleVersionable
      else if(versionable supported)
         use versionable
      else 
         throw exception
      

      Could you please elaborate what are the possible issues with jcr bridge when switching to mix:versionable? (EOW, what else needs to be changed?)

      Attachments

        1. versioningType.patch
          5 kB
          Ivan Vasyliev

        Activity

          People

            Unassigned Unassigned
            vasilievip Ivan Vasyliev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: