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

Unable to edit a file in DM if the file (folder) has been removed from data folder

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.X EE, 7.0.1 CE GA2
    • Fix Version/s: None
    • Component/s: DM, DM > Administration
    • Labels:
      None
    • Fix Priority:
      4

      Description

      Issues:
      There are some difference between master and ee-6.2.x.
      For master, if the file or its folder has been removed from data folder, when try to download it, it shows not found message , but when try to edit it, it only shows "Your request failed to complete." and the user might not know what happens.
      For ee-6.2.x, if the file has been removed, it cannot be downloaded but can be edited (which is not consistent with master). And if its folder has been removed, portlet will be temporarily unavailable, the exception should be caught.
      When the data somehow lost during upgrade, it will result in some problems.

      Steps to reproduce:

      1. Add 2 files to DM.
      2. Delete the file 1 from data folder: $liferay.home/data/document_library/20202/20233/1/1.0.
      3. Delete the folder of file 2 from data folder: $liferay.home/data/document_library/20202/20233/2.
      4. Try to edit the files.

      Actual results:
      For master, it both shows "Your request failed to complete."
      For ee-6.2.x, the file 1 can be edited, and when trying to edit file 2, it shows "Documents and Media is temporarily unavailable.", and IOException throws.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 25 weeks, 6 days ago

                Packages

                Version Package