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

Potential OutOfMemoryError in VerifyPermission#fixOrganizationRolePermissions

    Details

      Description

      Description
      The VerifyPermission#fixOrganizationRolePermissions uses a DynamicQuery to fetch all the Organization ResourcePermissions into a single List. If someone has many organizations in their portal, you can imagine that this would cause an OutOfMemoryError. We should use an ActionableDynamicQuery instead.

      Steps to Reproduce
      1. Start up the portal and log in as the admin user.
      2. Add many organizations to your portal (500,000 would probably be sufficient).
      3. Shut down the portal.
      4. Add the following lines to your portal-ext.properties file:

      verify.processes=com.liferay.portal.verify.VerifyPermission
      verify.frequency=-1
      

      5. Start up the portal.

      Expected Result: The portal starts up successfully with no errors.
      Actual Result: The portal fails to start up due to an OutOfMemoryError.

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            michael.bowerman Michael Bowerman (Inactive)
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.0.0 DXP FP28
                7.0.X EE
                7.0.4 CE GA5
                7.1.X
                Master