-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: 6.2.X EE, Master
-
Fix Version/s: None
-
Labels:None
Issue
When the Asset Publisher tries to display Web Content which is not permissioned for the user, it crashes with:
com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 20117 must have permission to perform action com.liferay.journal.model.JournalArticle,35602,VIEW
Steps to Reproduce
- Create new web content
- Change permissions so only Owner has view permission
- Goto Control Panel > Configuration > System Settings
- Open Web Content and Check Article view permissions check enabled box
- Make content appear in Asset Publisher
- Click on the web content and capture the URL of the display page.
- Login with a different user or as guest
- Visit the URL
EXPECTED RESULTS
Article is not visible.
ACTUAL RESULTS
The Asset Publisher produces error:
com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 20117 must have permission to perform action com.liferay.journal.model.JournalArticle,35602,VIEW
Reproduced
6.2.x - 0b7a729ca9a767b03e888662d5abfca9784f7548
master - 4aaffb23bdc6c07ddac15b410858839c893ebb8d
- duplicates
-
LPS-62824 Improve the way a permission error is presented to a user who wants to view a Web Content
- Open