"Unable to get recent groups" error is thrown in the logs for Guest users with specific permission

Issue

  • Liferay DXP 7.4 U92 starts up with the following error:
    ERROR [http-nio-8080-exec-2][RecentGroupManager:94] Unable to get recent groups
    java.lang.NullPointerException: null
    	at com.liferay.portal.security.permission.BasePermissionChecker.init(BasePermissionChecker.java:104) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker.init(AdvancedPermissionChecker.java:252) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.PermissionCheckerFactoryImpl.create(PermissionCheckerFactoryImpl.java:48) ~[portal-impl.jar:?]
    	at com.liferay.portal.kernel.security.permission.PermissionCheckerFactoryUtil.create(PermissionCheckerFactoryUtil.java:18) ~[portal-kernel.jar:?]
    	at com.liferay.site.util.RecentGroupManager.getRecentGroups(RecentGroupManager.java:113) ~[bundleFile:?]
    	at com.liferay.site.util.RecentGroupManager.getRecentGroups(RecentGroupManager.java:91) ~[bundleFile:?]
    	at com.liferay.product.navigation.site.administration.internal.display.context.SiteAdministrationPanelCategoryDisplayContext.isShowSiteSelector(SiteAdministrationPanelCategoryDisplayContext.java:453) ~[bundleFile:?]

 

Environment

  • Liferay DXP 7.4 Update 86+

 

Resolution

  • The error was caused by the Guest user granted the “View Site and Asset Library Administration” permission. After removing the permission from Guest user, the error won't occur.
    GuestPermission.png

Additional Information

  • LPS-195844 prevents the error happening even if the permission is accidentally granted to the Guest user.

 

 

Was this article helpful?
0 out of 0 found this helpful