Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-889

CmisObjectNotFoundException when creating if document is deleted in transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • OpenCMIS 0.12.0
    • None
    • opencmis-client
    • None
    • CMIS Workbench Groovy Console

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iblanco Igor Blanco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: