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

After upgrade, Custom Roles have all permissions assigned that were not before the upgrade

    Details

      Description

      • In a 6.0 (I was using 6.0.x 6052fe92c3373492b0ee5c775a01e105ca7da39b)
      • Create a custom role (I created an Organization role)
      • Assign all the Organization permissions to this role (Role -> Define permissions -> Portal -> Organization -> All)
      • shutdown and perform upgrade process (I set upgrade.processes=com.liferay.portal.upgrade.UpgradeProcess_6_0_12_to_6_1_0, ignore the index errors)
      • sign in, go to control panel
      • in Roles find the role just created
      • Note it will show that it has all the BookmarksEntry and BookmarksFolder

      The problem appears to originate from com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradePermission which loads and processes all the ResourcePermissions regardless of the type (name) to which they were assigned:

      		List<ResourcePermission> resourcePermissions =
      			ResourcePermissionLocalServiceUtil.getScopeResourcePermissions(
      				_scopes);
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.jin Mark Jin (Inactive)
              Reporter:
              raymond.auge Raymond Auge
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 22 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2