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

Unable to grant roles to user who belongs to multiple sites when SPA is disabled

    Details

      Description

      Description
      Unable to grant roles to users who belong to multiple sites when we disable SPA (i.e. set javascript.single.page.application.enabled=false in portal-ext.properties).

      Steps to reproduce

      1. Set javascript.single.page.application.enabled=false in portal-ext.properties to disable SPA
      2. Start DXP with DE-29 and login as admin
      3. Go to Control Panel > Sites > Sites and Create two blank sites "Site A" and "Site B"
      4. Go to Control Panel > Users > Users and Organizations and create a user
      5. In the user's edit display, grant site membership of "Site A" and "Site B" and Save
      6. In user's edit display, select Site Roles, then select any site (e.g. Site A or Site B)

      Expected Behavior
      The Site role screen displays, and the list of roles are available

      Actual Behavior
      Site roles are not listed after selecting the desired site. Instead, the error "Roles is temporary unavailable" is shown on display. (See "error.png"). This time, Errors below are seen in log

      07:14:45,006 ERROR [http-nio-8080-exec-5][PortletRequestDispatcherImpl:265] Unable to dispatch request: com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 0
      07:14:45,007 ERROR [http-nio-8080-exec-5][PortletServlet:112] javax.portlet.PortletException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 0
      javax.portlet.PortletException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 0
      07:14:45,010 ERROR [http-nio-8080-exec-5][render_portlet_jsp:131] null
      com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 0 at com.liferay.portal.service.persistence.impl.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:10314)

      Reproduced in
      de-29
      master(9e163b20be26b7b14d009307a76da5804d3afac0)
      7.0.x(ba5637e65bd379c0c94bfbc1e683a8d92c5b2452)

        Attachments

          Activity

            People

            • Assignee:
              felix.zhang Felix Zhang
              Reporter:
              david.zhang David Zhang (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 2 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP32
                7.0.5 CE GA6
                7.0.X
                7.1.X
                Master