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

Search results and pagination are inconsistent when searching in Site Memberships

    Details

      Description

      Issue
      Search results and pagination are inconsistent when searching in Site Memberships

      Steps to reproduce

      1. Start a clean bundle
      2. Login and go to Control Panel > Server Administrator > Scripts
      3. Run the following script to create several organizations
        import com.liferay.portal.kernel.service.OrganizationLocalServiceUtil;
        import com.liferay.portal.kernel.util.PortalUtil;
        long userId = PortalUtil.getUserId(actionRequest);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_監査部_1", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_監査部_2", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_監査部_3", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_01", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_02", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_03", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_04", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_05", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_06", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_07", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_08", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_09", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_10", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_11", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_12", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_13", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_14", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_15", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_16", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_17", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_18", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_19", false);
        OrganizationLocalServiceUtil.addOrganization(userId, 0, "ライフレイ_調査部_20", false);
        
      1. Go to Control Panel > Users and Organizations > Organizations
      2. Confirm that 23 organizations have been created
      3. Search for "監査部" (without quotes)
      4. Confirm that there are 23 results and also confirm that there are two pages for pagination (20 entries on first page, 3 entries on second page, "Showing 1 to 20 of 23 Entries).
      5. Go to Liferay Site > Site Membership > Organizations
      6. Click on the [+] button to open a modal window
      7. Search for "監査部" (without quotes)

       

      Actual results

      A. 3 results are returned.

      B. Pagination supposedly shows two pages with 23 results, but if you click on the second page, it returns an empty page.

      Expected results
      A. 23 results are returned.

      B. Pagination shows two pages with 20 results on the first page and 3 results on the second page.

      Reproduced in
      7.0.x (f26a756d5286daaf8c60ba6834e627fb0d2d207b)
      7.1.x (a0f089b090fef25c428618500fee0ae9d0c59760)
      master (5a874304d2e289f7716fa82902fd8ef170a0317c)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raven.song Raven Song
                Reporter:
                il.kim Brian I. Kim
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP71
                  7.0.10.11 DXP SP11
                  7.0.X
                  7.1.10 DXP FP7
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master