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

Staging publication fails if previous version live site file is missing from file store location


    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.0.X, Master
    • Fix Version/s: None
    • Component/s: Staging
    • Labels:


      Reproduction Steps:
      1. Create a site.
      2. Set up local staging for the site.
      3. Upload a document to staging. Document is ver 1.0.
      4. Publish site to live.
      5. Upload an update to the document. Document is now ver 1.1 or 2.0.
      6. In the filesystem, find the actual file for the live site. Use the DLFileEntry table, find the document details and trace into filesystem. Delete the file that corresponds to the live site's file. Do not try to delete the file within Liferay, only delete from the filesystem.
      7. Back in Liferay, attempt to publish your staged site to your live site.


      Expected Result: Publication succeeds. Live site now has updated document.

      Actual Result: Publication fails. Stack trace for 7.0 is below:

      Caused by: com.liferay.document.library.kernel.exception.NoSuchFileException: {c ompanyId=20115, repositoryId=20142, fileName=2, version=1.0}
      at com.liferay.portal.store.file.system.FileSystemStore.copyFileVersion( FileSystemStore.java:123)
      at com.liferay.portal.store.ignore.duplicates.wrapper.internal.IgnoreDup licatesStore.lambda$copyFileVersion$3(IgnoreDuplicatesStore.java:107)
      at com.liferay.portal.store.ignore.duplicates.wrapper.internal.IgnoreDup licatesStore.recoverAndRetryOnFailure(IgnoreDuplicatesStore.java:345)
      at com.liferay.portal.store.ignore.duplicates.wrapper.internal.IgnoreDup licatesStore.copyFileVersion(IgnoreDuplicatesStore.java:104)
      at com.liferay.portal.store.safe.file.name.wrapper.internal.SafeFileName Store.copyFileVersion(SafeFileNameStore.java:121)
      at com.liferay.portlet.documentlibrary.store.DLStoreImpl.copyFileVersion (DLStoreImpl.java:193)
      at com.liferay.document.library.kernel.store.DLStoreUtil.copyFileVersion (DLStoreUtil.java:213)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServ iceImpl.checkOutFileEntry(DLFileEntryLocalServiceImpl.java:548)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServ iceImpl.checkOutFileEntry(DLFileEntryLocalServiceImpl.java:444)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServ iceImpl.updateFileEntry(DLFileEntryLocalServiceImpl.java:2589)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServ iceImpl.updateFileEntry(DLFileEntryLocalServiceImpl.java:1910)




            • Votes:
              1 Vote for this issue
              4 Start watching this issue


              • Created:
                Days since last comment:
                1 year, 24 weeks ago


                Version Package