Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53B2A17B77 for ; Tue, 3 Feb 2015 16:59:37 +0000 (UTC) Received: (qmail 19094 invoked by uid 500); 3 Feb 2015 16:59:35 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 19028 invoked by uid 500); 3 Feb 2015 16:59:35 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 19012 invoked by uid 99); 3 Feb 2015 16:59:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 16:59:35 +0000 Date: Tue, 3 Feb 2015 16:59:35 +0000 (UTC) From: "Igor Blanco (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CMIS-889) CmisObjectNotFoundException when creating if document is deleted in transaction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303576#comment-14303576 ] Igor Blanco commented on CMIS-889: ---------------------------------- Thanks Florian, that worked like a charm. > 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)