[
https://issues.apache.org/jira/browse/CMIS-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Hübel closed CMIS-696.
---------------------------
> InMemory server does not supports removing from all parent folders at once in
> multifilling server
> -------------------------------------------------------------------------------------------------
>
> Key: CMIS-696
> URL: https://issues.apache.org/jira/browse/CMIS-696
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-server-inmemory
> Affects Versions: OpenCMIS 0.10.0
> Reporter: Alexis Meneses
> Assignee: Jens Hübel
> Priority: Minor
> Attachments: CMIS-696 fix.patch
>
>
> 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
> {code}
> 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)
> {code}
> 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:
> {quote}
> If no value is specified, then the repository MUST remove the object from all
> folders in which it is currently filed.
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira