chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Meneses (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-695) FileableCmisObject.removeFromFolder should accept "null" as argument
Date Fri, 02 Aug 2013 17:13:48 GMT
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

Mime
View raw message