Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, Master
-
7.1.x, 7.0.x
-
Committed
-
3
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