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

isGroupAdmin() checks for a non-existent groupId attribute in the SearchContext

    Details

      Description

      Repro Steps

      1. Create 25,000+ users by navigating to Configuration > Server Administration > Script and executing the attached Groovy script. This will take 1-2 hours.
      2. Create a new user and add it to the default site as a Site Administrator
      3. Log in as the new user
      4. Navigate to Site Administration > People > Members > Add

      Results

      Expected Result: Users will be displayed correctly without performance issues
      Actual Result: Only the newly created Site Administrator is displayed after 1-2 minutes

      Additional Notes

      The performance hit is due to the users being filtered. As a Site Administrator, this step is unnecessary. There is an isGroupAdmin() check to prevent this, but the SearchContext it operates on is missing a groupId attribute to indicate Site Administrator privileges.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patricia.perez Patricia Perez
                Reporter:
                jesse.yeh Jesse Yeh
                Participants of an Issue:
                Recent user:
                Jason Pince
                Engineering Assignee:
                Jesse Yeh
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 weeks, 6 days ago

                  Packages

                  Version Package
                  7.2.X
                  7.3.0 CE GA1
                  7.3.1 CE GA2
                  Master