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

Files cannot be moved between folders when using AFSS

    Details

      Description

      Description

      When using the Advanced File System Store, documents uploaded to Documents and Media cannot be moved from their original location, as it fails with a UI error.

      Steps to Reproduce

      1. Add a file in [Liferay_Home]/osgi/configs titled com.liferay.portal.store.file.system.configuration.AdvancedFileSystemStoreConfiguration.config with the following content:

      rootDir = "data/document_library_test"
      userHardLinks = B"false"
      

      2. Add a portal-ext.properties file with the following content:

      dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStore
      

      3. Either start with a clean bundle or clear out all four Application Server caches, then launch the bundle.
      4. Navigate to [Site_Administration] > Documents and Media, then to the root directory add both a new folder "Test Folder" and upload an image
      [Note: at this point you can check the logs and the file system -- there shouldn't be any errors, and the file system should include the image within the data\document_library_test\[directory ID] ]
      5. Attempt to move the uploaded image (via ⠇ > Move) to the Test Folder

      Results of Testing

      Expected Result: The image would move to the Test Folder
      Actual Result: The image is not moved to the Test Folder (remaining in its original location), and a UI error is encountered

      Errors/Logs

      No errors in the logs, but the UI displays a “Error:Your request failed to complete.” The move operation does not complete.

       

      If using the debugger, the URL can be observed to be something similar to:

      X:\liferay-document-library\20116\67612\11\90\11903.afsh\11903_11903_1.0.afsh.afsh
      

      which will return a FileNotFoundException (that does not appear in console/terminal).

      Master

      Reproduced.
      Hash#: b8f416365d8d42cbdf01069da039d1ded32c4930

      Branch

      Not Reproduced.
      Hash#: f7945b1e7941e42f6f7efca30d65cb0e924ea509

      Note: I also tested on a Branch hash from a bundle I downloaded about a week ago (54342930235c00a8a33485edfb2683ee5c08d149), and I did not reproduce the unexpected behavior there either.

      * Please see Zendesk Support tab for further comments and attachments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeremy.chen Jeremy Chen
              Reporter:
              lianne.louie Lianne Louie
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                27 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.10 DXP GA1
                  Master