Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-23919

Deleting a newly added document on CMIS repository will cause console errors

    Details

      Description

      Steps to reproduce:

      1) Mount a repository
      2) Create a folder in repository
      3) Upload a fairly large pdf with lots of pages
      4) Open the document
      5) Go back and delete the folder
      6) You should see following errors in console

      05:29:55,988 ERROR [CMISFileVersion:138] com.liferay.portlet.documentlibrary.NoSuchFileEntryException: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: a46d34ea-d134-4d4f-adc9-e7a697c56d87
      com.liferay.portlet.documentlibrary.NoSuchFileEntryException: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: a46d34ea-d134-4d4f-adc9-e7a697c56d87
      	at com.liferay.portal.repository.cmis.model.CMISFileVersion.getFileEntry(CMISFileVersion.java:119)
      	at com.liferay.portal.repository.cmis.model.CMISFileVersion.getFileEntryId(CMISFileVersion.java:135)
      	at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.getPathSegment(DLPreviewableProcessor.java:126)
      	at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.getPreviewFilePath(DLPreviewableProcessor.java:249)
      	at com.liferay.portlet.documentlibrary.util.DefaultPreviewableProcessor.getPreviewFilePath(DefaultPreviewableProcessor.java:79)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImagesPB(PDFProcessor.java:606)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImagesPB(PDFProcessor.java:532)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImages(PDFProcessor.java:327)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImages(PDFProcessor.java:287)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor.generateImages(PDFProcessor.java:107)
      	at com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener.doReceive(PDFProcessorMessageListener.java:31)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: a46d34ea-d134-4d4f-adc9-e7a697c56d87
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:430)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:552)
      	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.VersioningServiceImpl.getAllVersions(VersioningServiceImpl.java:242)
      	at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getAllVersions(DocumentImpl.java:235)
      	at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getAllVersions(DocumentImpl.java:220)
      	at com.liferay.portal.repository.cmis.model.CMISFileVersion.getFileEntry(CMISFileVersion.java:116)
      	... 16 more
      
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 33 weeks, 1 day ago

                Packages

                Version Package
                --Sprint 12/11
                6.1.0 CE RC1