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

As a secondary user, attempting to access Global from the site selector causes a console NPE

Details

    Description

      The full console logs for both 6.1.X EE and 6.1.20 EE are attached. The 6.1.20 EE log reports an extra JSP related error that does not display when the issue is reproduced in 6.1.X EE.

      Steps to Reproduce:

      1. Go to > Control Panel > Roles
      2. Create a test role
      3. Define role permissions to include:
        • Control Panel: Site > Bookmarks > Access in Control Panel (do not limit scope)
        • Control Panel: Site > Bookmarks > View (do not limit scope)
      4. Create a test user
      5. Assign the test user to the test role
      6. Sign out as [email protected]
      7. Sign in as the newly created test user
      8. Go to > Control Panel
      9. Navigate to the site selector
      10. Select "Global"
      11. Assert the following NPE console error:
        21:22:28,550 ERROR [http-bio-8080-exec-9][IncludeTag:253] Current URL /group/control_panel?refererPlid=10183&doAsGroupId=10192 generates exception: null
        21:22:28,554 ERROR [http-bio-8080-exec-9][IncludeTag:154] java.lang.NullPointerException
                at org.apache.jsp.html.taglib.ui.staging.page_jsp._jspService(page_jsp.java:871)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
                at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
                at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
                at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
                at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)
                at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
                at org.apache.jsp.html.portlet.control_005fpanel_005fmenu.view_jsp._jspService(view_jsp.java:846)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
                at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
                at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
                at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
                at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)
                at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
                at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:4623)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        

      Attachments

        Issue Links

          Activity

            People

              yang.gao Yang Gao (Inactive)
              joshua.robins Joshua Robins (Inactive)
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 4 days ago

                Packages

                  Version Package
                  6.1.X EE