You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2015/02/03 17:40:35 UTC
[jira] [Resolved] (CMIS-889) CmisObjectNotFoundException when
creating if document is deleted in transaction
[ https://issues.apache.org/jira/browse/CMIS-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller resolved CMIS-889.
---------------------------------
Resolution: Not a Problem
> 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)