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

Organisations with sites cant access local scoped stuff

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE GA1
    • Fix Version/s: 6.2.1 CE GA2
    • Component/s: Portal Services
    • Labels:
      None

      Description

      Short description:
      In my understanding of community sites and organisations they should behave exactly the same but they dont. When I create an organisation with a site it wont have access to some local scoped stuff e.g. newly created Documenttypes, Structures, etc.

      Recreation:
      Site behavior (correct):

      1. In "Sites" create a new community site
      2. Then in "Documents and media" -> "Manage" -> "Document Types" create a new document type and Save
      3. Now you see the newly created document type

      Organisation behavior (error):

      1. In "Users" -> "All Organisations" add a new "Regular Organisation" and let it create a site with public pages "Community Site"
      2. Now goto "Sites" and click on the newly created organisation site
      3. Then in "Documents and media" -> "Manage" -> "Document Types" create a new document type and Save
      4. Now you do NOT see the newly created document type but it is in the database

      Development hints:
      I traced it back to following methods:
      PortalImpl.getSiteAndCompanyGroupIds(long groupId) line 4774 calls
      scopeGroup.isRegularSite() which in GroupImpl line 696 only checks if its class name is Group.class which it is not because its Organization.class.
      My fix would be to extend PortalImpl class to also return Organisations if they have site layouts:
      || (scopeGroup.isOrganization() && scopeGroup.hasPublicLayouts() || scopeGroup.hasPrivateLayouts())

        Attachments

          Activity

            People

            Assignee:
            koor.gai Koor Gai
            Reporter:
            manuel.manhart Manuel Manhart
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 24 weeks, 5 days ago

                Packages

                Version Package
                6.2.1 CE GA2