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

LayoutLocalServiceUtil.getNoPermissionLayouts always returns all layouts

    Details

      Description

      LayoutLocalServiceUtil.getNoPermissionLayouts always returns all layouts. This causes the verify process in VerifyResourcePermissions to iterate over every layout unnecessarily.

      Testing steps:

      1. Clear out the data/hypersonic folder
      2. Start up Liferay

      Expected behavior is that at most VerifyResourcePermissions only reports checking layouts once because all of them should have permissions after the first time. Actual behavior is that it constantly reports checking for layouts. Searching through the startup log indicates the following:

      23:43:55,640 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      23:43:55,661 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      23:44:10,950 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      23:44:18,689 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      23:44:18,708 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      23:44:22,140 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      23:44:22,146 INFO  [localhost-startStop-1][VerifyResourcePermissions:?] Processed 0 of 3 resource permissions for company = 20116 and model com.liferay.portal.kernel.model.Layout
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              minhchau.dang Minhchau Dang
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP3
                  7.0.0 DXP SP1
                  7.1.X
                  Master