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

When deleting a site the corresponding subscriptions aren't removed

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.10 EE GA1, 6.2.X EE, 7.0.0 DXP SP1, Master
    • Fix Version/s: 7.1.X, Master
    • Labels:
      None

      Description

      The My Subscriptions portlet will show an error message instead of your actual subscriptions if you follow these steps:

      • Install the Liferay My Subscriptions portlet if it isn't installed yet
      • Create a new site
      • Go to the site management for this new site and go to Documents and Media
      • Click on Subscribe
      • Delete the site
      • Open the My Subscriptions portet

      In the logs you'll see an exception that shows that the list of subscriptions still has a subscription that points to a group, the one of the site we created and deleted, that isn't available anymore. So it seems there are some objects in Liferay, in this a site (group), but possibly others, that can be deleted without the necessary side effect of the corresponding subscriptions being deleted too. The only way I could solve this was the manually delete the corrupt lines directly in the Subscription table in the database.

      Even though this is an EE portlet I can't get official support as it is also a Labs portlet which sucks a bit as this isn't just a minor problem that maybe hampers functionality a bit, but a serious bug which currently can only be solved by direct manipulation of the database which is something that should never be done (trying to delete the subscription via an API call also fails because that too will try to find the group).

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            jan.eerdekens@gmail.com Jan Eerdekens (Inactive)
            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:
              4 years, 44 weeks, 4 days ago

                Packages

                Version Package
                7.1.X
                Master