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.