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

Unable to delete site after deleting user with knowledge base articles.

    Details

      Description

      Description:
      When a User that has created a Knowledge Base Article in a Site is deleted, the Site will not delete and throws the following error:

      ERROR [http-nio-8080-exec-5][GroupLocalServiceImpl:4206] Unable to delete data for portlet null in group 34422
      com.liferay.exportimport.kernel.lar.PortletDataException: No User exists with the primary key 34404
      ...
      Caused by: com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the primary key 34404
      

       

      Environments:
      Reproducible in Master, 7.1, and 7.0

      Steps to Reproduce:
      1. Start up a clean bundle.
      2. As admin, create a user.
      3. Grant the user Administrator role.
      4. Still as admin, create a new site (no pages)
      5. Sign in as the new user.
      6. Navigate to the new site and go to Content > Knowledge Base > Add a new Base article with any title and content. Save.
      7. Sign out and then sign in as the first Admin user. Go to Control Panel > Users > Users and Organizations.
      8. Deactivate and then Delete the new user.
      9. Go to Control Panel > Sites
      10. Try to deactivate the new site and observe the following error:

      Expected Result: Site deletes.
      Actual Result: The following error occurs.

      GroupId is:32298 , Group key: 32295
      GroupId is:32270 , Group key: test1
      com.liferay.portal.kernel.exception.SystemException: com.liferay.exportimport.kernel.lar.PortletDataException: com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the primary key 32245
      com.liferay.portal.kernel.exception.SystemException: com.liferay.exportimport.kernel.lar.PortletDataException: com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the primary key 32245
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4014)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:956)
      at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:1104)
      

      Master: bd1740b0b4067bbfb54764675fc8a1dfc6224e31

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peyton.zhao Peyton Zhao (Inactive)
                Reporter:
                samuel.ziemer Sam Ziemer
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  31 weeks ago

                  Packages

                  Version Package
                  7.1.10 DXP FP10
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master