Alexis Meneses created CMIS-695:
-----------------------------------

             Summary: FileableCmisObject.removeFromFolder should accept "null" 
as argument
                 Key: CMIS-695
                 URL: https://issues.apache.org/jira/browse/CMIS-695
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-client
    Affects Versions: OpenCMIS 0.10.0
            Reporter: Alexis Meneses
            Priority: Minor


When trying to call {{removeFromFolder(null)}} on a 
{{org.apache.chemistry.opencmis.client.api.FileableCmisObject}}, the API 
returns 

{code}
java.lang.IllegalArgumentException: Folder Id must be set!
        at 
org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject.removeFromFolder(AbstractFilableCmisObject.java:178)
{code}

But CMIS Spec v1.1 defines the input as being optional (cf. ยง2.2.5.2.1 - 
Multi-filing Services / removeObjectFromFolder / inputs). The nullity check in 
AbstractFilableCmisObject should be removed.


--
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

Reply via email to