[ 
https://jira.nuxeo.org/browse/CMIS-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=68878#action_68878
 ] 

Stéfane Fermigier commented on CMIS-11:
---------------------------------------

add 

REMOTE_ROOT = "/default-domain" 

to the script.

> Deleted object (from the Web interface) not really deleted (from the CMIS API)
> ------------------------------------------------------------------------------
>
>                 Key: CMIS-11
>                 URL: https://jira.nuxeo.org/browse/CMIS-11
>             Project: Nuxeo Chemistry
>          Issue Type: Bug
>            Reporter: Stéfane Fermigier
>            Assignee: Florent Guillaume
>
> If I delete an object from the CMIS API, then try to do a getObjectByPath() 
> on the deleted object's path, it fails (which is the desired behaviour).
> If I delete it from the web interface, the getObjectByPath() call will 
> succeed.
> I understand this is due to the trash management lifecycle, but still I don't 
> think this is correct from a CMIS standpoint.
> Here's a script to show the behaviour:
> from cmislib.model import CmisClient
> REPOSITORY_URL = "http://cmis.demo.nuxeo.org/nuxeo/site/cmis/repository";
> LOGIN = "Administrator"
> PASSWORD = "Administrator"
> def main():
>     cmisClient = CmisClient(REPOSITORY_URL, LOGIN, PASSWORD)
>     repo = cmisClient.getDefaultRepository()
>     remoteRootFolder = repo.getObjectByPath(REMOTE_ROOT)
>     
>     remoteRootFolder.createFolder("titi")
>     
>     print "Now remove folder titi from the web interface"
>     sys.stdin.readline()
>     
>     print "An error should be raised now"
>     repo.getObjectByPath(REMOTE_ROOT + "/titi") 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to