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

MySites portlet does not show organizations in some cases

    Details

      Description

      steps to reproduce

      1. set my.sites.max.elements=3 in portal-ext.properties
      2. start portal
      3. create 6 some organizations with sites, the last three must have pages, name them orgnopage1, orgnopage2, orgnopage3, orgpage1, orgpage2, orgpage3
        • for all organizations
          • Control Panel, Users and Organizations, Add Regular Organization
          • Click on Organization Site, check Create Site
        • for orgpage?
          • choose Community site below public pages on Create Site Tab
      4. Add all the organizations for Test user, in the order of creation of organizations (see the attached picture)
      5. Click on My Sites

      expected behaviour

      All the organizations with pages must be shown (orgpage1, orgpage2, orgpage3)

      experienced behaviour

      Only Liferay is shown in the My Sites menu

      root cause

      GroupServiceImpl.getUserSitesGroups gets my.sites.max.elements from sites, than gets my.sites.max.elements number of organizations, filters the list and return with a list. However, among the first 3 organizations, there are no organizations with pages and the remaining 3 will not be fetched.

        Attachments

        1. Fixed.PNG
          Fixed.PNG
          154 kB
        2. Fixed62.PNG
          Fixed62.PNG
          13 kB
        3. organizations.png
          organizations.png
          36 kB
        4. ReproducedM.PNG
          ReproducedM.PNG
          152 kB

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              peter.borkuti Peter Borkuti (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 9 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Alpha 1