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

Folder-related PortletDataHandlers are not removing child folders that are in trash

Details

    Description

      Scenario: Models that can be contained in folders are not deleted properly when removing the Group they belongs. More specificly, subfolders whose parent has been removed (from trash) are affected by this bug.

      This issue can be replicated within BookmarksFolder, MBCategories, DLFolders, JournalFolders.

      0) Create a new Site (remember that groupId)
      1) Create a parent folder, named parent
      2) Create a subfolder, named child
      3) Sent child to trash
      4) Sent parent to trash
      5) Remove the parent from trash
      6) Go to MySQL and execute this query:

      select folderId, groupId, name, description, status from BookmarksFolder where groupId=YOUR_GROUPID;

      There will be one record on this table:

      +----------+---------+-------+-------------+--------+
      | folderId | groupId |  name | description | status |
      +----------+---------+-------+-------------+--------+
      |    48085 |   48072 | child |             |      8 |
      +----------+---------+-------+-------------+--------+
      

      7) Delete the site
      8) Execute the query again

      Expected behaviour: Empty set
      Actual behaviour: The folder has not been deleted with the group, so there is 1 row in the resultset.

      Attachments

        Activity

          People

            linda.sui Linda Sui
            manuel.delapenya Manuel de la Peña (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 42 weeks, 1 day ago

              Packages

                Version Package
                6.2.0 CE B3