Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-313

Multifiling folders returns conflict

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • OpenCMIS rev 1073115, Workbench, opencmis-server-inmemory, Tomcat 6, Mac OS X

    Description

      If I create the following folder structure:

      /cmislib/sub1
      /cmislib/sub2

      And then try to add sub2 as a child of sub1 using the groovy script below, I get a constraint violation.

      Multifiling documents seems to work fine, however.

      Jeff

      groovy> import org.apache.chemistry.opencmis.commons.*
      groovy> import org.apache.chemistry.opencmis.commons.data.*
      groovy> import org.apache.chemistry.opencmis.commons.enums.*
      groovy> import org.apache.chemistry.opencmis.client.api.*
      groovy> cmis = new scripts.CMIS(session)
      groovy> Folder folder = cmis.getFolder("/cmislib")
      groovy> println folder.id
      groovy> Folder sub1 = cmis.getFolder("/cmislib/sub1")
      groovy> println sub1.id
      groovy> Folder sub2 = cmis.getFolder("/cmislib/sub2")
      groovy> println sub2.id
      groovy> sub2.addToFolder(sub1, true)

      136
      137
      138
      Exception thrown

      org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Conflict
      at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:406)
      at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:496)
      at org.apache.chemistry.opencmis.client.bindings.spi.atompub.MultiFilingServiceImpl.addObjectToFolder(MultiFilingServiceImpl.java:63)
      at org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject.addToFolder(AbstractFilableCmisObject.java:151)
      at multifile.run(multifile.groovy:20)

      Attachments

        Activity

          People

            jpotts Jeffrey Taylor Potts
            jpotts Jeffrey Taylor Potts
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: