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. organizations.png
          organizations.png
          36 kB
        2. Fixed.PNG
          Fixed.PNG
          154 kB
        3. ReproducedM.PNG
          ReproducedM.PNG
          152 kB
        4. Fixed62.PNG
          Fixed62.PNG
          13 kB

        Issue Links

          Activity

            People

              harry.chai Harry Chai
              peter.borkuti Peter Borkuti (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 12 weeks, 1 day ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Alpha 1