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

PrincipalException when trying to manage templates with a role that has view permission to a template

    Details

      Description

      1. With an administrator, create a role in the control panel
      2. Find the newly created role and click on it to assign permissions;
      3. Click on the "Define permissions" tab;
      4. In the left panel, go to "Site Administration" > "Content" > "Web content"
      5. In "General Permissions", check "Access in Site Administration" and "View"
      6. Click on Save
      7. Create a new web content structure and template associated to this structure
      8. Manage the permissions of this structure and uncheck all checkboxes (except for Owner), if they are not already.
      9. For the template, do the same but also give the View permission to the role created at step 1
      10. Create a user and assign him the role created at step 1, also remove the Power User role.
      11. Login with this user
      12. Go to the web content administration page
      13. Click on Manage Templates
      -> A blank page is displayed and the log contains this exception:

      com.liferay.portal.security.auth.PrincipalException at com.liferay.portlet.dynamicdatamapping.service.permission.DDMStructur
      ePermission.check(DDMStructurePermission.java:59)

        Attachments

          Activity

            People

            Assignee:
            mark.jin Mark Jin (Inactive)
            Reporter:
            hai.yu Hai Yu
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 7 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 Alpha 4