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

Asset Publisher Errors when trying to display permissioned content

    Details

      Description

      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

      1. Create new web content
      2. Change permissions so only Owner has view permission
      3. Goto Control Panel > Configuration > System Settings
      4. Open Web Content and Check Article view permissions check enabled box
      5. Make content appear in Asset Publisher
      6. Click on the web content and capture the URL of the display page.
      7. Login with a different user or as guest
      8. 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.cords Joshua Cords
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 47 weeks ago

                  Packages

                  Version Package