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

InMemory server does not supports removing from all parent folders at once in multifilling server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • OpenCMIS 0.10.0
    • None
    • None

    Description

      Now the client API supports removing a File-able from all its parent folders at once using removeFromFolder(null) (see fixed CMIS-695) but trying to call that API against InMemory server returns the following

      org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Object Id cannot be null.
              at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:458)
              at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)
              at org.apache.chemistry.opencmis.client.bindings.spi.atompub.MultiFilingServiceImpl.removeObjectFromFolder(MultiFilingServiceImpl.java:90)
              at org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject.removeFromFolder(AbstractFilableCmisObject.java:177)
      

      It turns out that InMemory server does not supports the following feature which is specified in CMIS (see §2.5.5.2): call on Multi-filing/removeObjectFromFolder without the optional folderId parameter should do the following:

      If no value is specified, then the repository MUST remove the object from all folders in which it is currently filed.

      Attachments

        1. CMIS-696 fix.patch
          15 kB
          Alexis Meneses

        Activity

          People

            jenshuebel Jens Hübel
            alexis_meneses Alexis Meneses
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: