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

dl files missing in document library portlet cause staging publish fail

    Details

      Description

      Step to Reproduce:
      1. Establish portal-ext.properties with S3 credentials
      2. Start up the Portal
      3. Sign in as [email protected] and enable local staging
      4. In the Control Panel, access default site's Documents and Media section
      5. Upload a file
      6. Go to the S3 bucket interface via Amazon, and delete that file from the storage
      7. Back in the Portal, choose"Publish to Live"
      Expected Result: Publish successfully but the Portal throws an error about the missing file
      Actual Result: Publish process failed and the Portal throws an error about the missing file
      Error/Logs

      05:55:25,820 INFO  [localhost-startStop-1][PortletHotDeployListener:492] 1 portlet for web-form-portlet is available for use
      06:03:29,010 WARN  [http-bio-8080-exec-7][Mimetypes:221] Unable to find 'mime.types' file in classpath
      06:17:10,478 WARN  [liferay/background_task-1][FileEntryStagedModelDataHandler:324] Unable to retrieve content for file entry 21136
      com.liferay.portal.kernel.exception.SystemException: org.jets3t.service.S3ServiceException: S3 Error Message. -- ResponseCode: 404, ResponseStatus: Not Found, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>20155/20818/305/1.0</Key><RequestId>C3605BE7E4C5742D</RequestId><HostId>GLzg6X9OA+DhzUyxqSzXzs/axIU6Zx1q4jsirXPKhuHwtlTZf/bmx6hsLLjUVXcRpihxgYG7PNg=</HostId></Error>
          at com.liferay.portlet.documentlibrary.store.S3Store.getFileAsStream(S3Store.java:217)
          at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFileAsStream(StoreProxyImpl.java:178)
          at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFileAsStream(SafeFileNameStoreWrapper.java:294)
          at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFileAsStream(DLStoreImpl.java:300)
          at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFileAsStream(DLStoreUtil.java:452)
          at com.liferay.portlet.documentlibrary.lar.FileEntryUtil.getContentStream(FileEntryUtil.java:105)
          at com.liferay.portlet.documentlibrary.lar.FileEntryStagedModelDataHandler.doImportStagedModel(FileEntryStagedModelDataHandler.java:320)
          at com.liferay.portlet.documentlibrary.lar.FileEntryStagedModelDataHandler.doImportStagedModel(FileEntryStagedModelDataHandler.java:1)
          at com.liferay.portal.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:164)
          at com.liferay.portlet.documentlibrary.lar.FileEntryStagedModelDataHandler.importStagedModel(FileEntryStagedModelDataHandler.java:120)
          at com.liferay.portlet.documentlibrary.lar.FileEntryStagedModelDataHandler.importStagedModel(FileEntryStagedModelDataHandler.java:1)
          at com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:340)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arthur.chen Arthur Chen
              Reporter:
              dale.shan Dale Shan (Inactive)
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 46 weeks ago

                  Packages

                  Version Package