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

In documents and media pagination counts sites where user does not have membership

    Details

      Description

      Description

      If a non admin user wants to select images from documents and media, the pagination is shown wrong as it counts the private/restricted sites as well where the user does not have membership. Although the user does not see or has access to these sites.

      Steps to reproduce:

      1. Set the following property in portal-ext.properties to ease new user
        registration:company.security.strangers.verify=false
      1. Start the bundle and login as admin
      2. Go to Control Panel → Sites → Sites and create 1 public and 4 private or restricted sites
      3. Go to Control Panel → Roles → Site Roles and create a new site role
      4. Editing the Role: go to Define Permissions → Site and Asset Library Administration → Content & Data → Web Content and tick every permission until Web Content Feed 
      5. Editing the Role: go to Define Permissions → Site and Asset Library Administration → Content & Data → Documents & Media and tick every permission until Shortcut
      6. Create a new User in Control Panel → Users → Users and Organizations
      7. Edit the User:
        1. Memberships: set it to a public site
        2. Roles: Site Role: chose the freshly created one
        3. Password: set up a password for the user
      8. Sign in with a freshly created User
      9. Go to My sites and chose the only option
      10. It will redirect to the Web Content screen. Go to new web content and click on Image
      11. Go to Sites and Libraries and observe the pagination

      Expected Result:

      The pagination will show the number of pages where the user has access

      Actual Result:

       The pagination is shown wrong as it counts the private/restricted sites as well where the user does not have membership. Although the user does not see or has access to these sites.

       Reproduced on:

        dxp1-7310

        7.3.x-private @ c02ffb6873c75f47a28f03b9e76ee9e4ca5413e9b9f75d36f409d9967782ecfb

        master-private @ 755fc20de7fdb0d877d1c359b4289fc7dac9770ae7ce7d0c260ff2f161d11d84

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              roland.pakai Roland Pákai
              Participants of an Issue:
              Recent user:
              Roland Pákai
              Engineering Assignee:
              Roland Pákai
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.3.X
                  7.4.13 DXP GA1
                  Master