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

Deleting documents in top-down approach causes errors when using a hierarchical file repository

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.2 RC
    • Fix Version/s: 6.0.3 GA
    • Component/s: DM
    • Labels:
      None
    • Environment:
      Custom dl.hook.impl that stores files hierarchically. For example, in Document Library portlet, if folder A has subfolder B, then the document library repository has a folder representing A with another folder inside it representing B.
    • Branch Version/s:
      5.2.x, 5.1.x

      Description

      Commit 42851 changed behavior of com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl.deleteFolder method from bottom-up approach to top-down approach. As such, when using custom dl.hook.impl that stores files hierarchically, there is a problem because the first deleteFolder invocation deletes all child folders and subsequent deleteFolder invocations on those child folders throw exceptions.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              bijan.vakili Bijan Vakili (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 11 weeks, 6 days ago