Igor Blanco created CMIS-889:
--------------------------------

             Summary: CmisObjectNotFoundException when creating if document is 
deleted in transaction
                 Key: CMIS-889
                 URL: https://issues.apache.org/jira/browse/CMIS-889
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-client
    Affects Versions: OpenCMIS 0.12.0
         Environment: CMIS Workbench Groovy Console
            Reporter: Igor Blanco
            Priority: Minor


I'm using Folder object's createDocument method to upload a file to an Alfresco 
folder. I have a rule on that folder tha takes some information from the file 
and then deletes it.

Everything works in Alfresco as expected but the createDocument method throws a 
CmisObjectNotFoundException. I suppose this is due to the fact that the 
document that it is trying to return is already a deleted content by the time 
the call ends. 

Is there any reasonable way of doing this apart from catching the exception ?  
I thought about not deleting the file in Alfresco and letting cmis do so but 
that would imply that 2 transactions would be used and potentially the 
operation could end in the middle of both of them.

I'm aware this is more a question for a forum than a bug but couldn't find a 
proper forum for OpenCMIS and writing it to the developer mailing list was IMHO 
an even worse option.







--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to