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

NPE throws when going to the depot without permission

    Details

      Description

      Steps to reproduce:

      1. Add two asset libraries
      2. Add a regular role then define the permissions as follows:
        • Control Panel> Asset Libraries > Access in Control Panel
        • Site Administration> Content & Data > Content Sets > GENERAL PERMISSIONS > Check
        • Control Panel> Asset Libraries > Asset Libraries > ASSET LIBRARY ENTRY > Check View
        • Site Administration> Content & Data > Content Sets > GENERAL PERMISSIONS > Check Access in Site Administration
      3. Click the Change button for Access in Site Administration permisssion > Recent > repositories > Select the one of the added asset library(Asset Library 1)
      4. Save the changes
      5. Add a new user and assign this role to her
      6. Login with the new user
      7. Go into Asset Library 1
      8. Assert the user can access in Contents Sets, that's correct
      9. Go to another asset library: Asset Library 2 via 'Go to Other Site or Library' icon

      Actual Result
      Portlet is temporarily unavailable and NPE throws on the console:

      2020-02-27 10:32:38.996 ERROR [http-nio-8080-exec-7][render_portlet_jsp:131] null
      java.lang.NullPointerException
              at com.liferay.item.selector.web.internal.ItemSelectorImpl.getItemSelectorCriteria(ItemSelectorImpl.java:108)
              at com.liferay.item.selector.web.internal.ItemSelectorImpl.getItemSelectorRendering(ItemSelectorImpl.java:157)
              at com.liferay.item.selector.web.internal.portlet.ItemSelectorPortlet.render(ItemSelectorPortlet.java:70)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
              at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
              at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
              at com.liferay.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:571)
              at com.liferay.portlet.internal.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:661)
              at com.liferay.portlet.internal.InvokerPortletImpl.render(InvokerPortletImpl.java:344)
              at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.lambda$render$0(MonitoringInvokerPortlet.java:259)
              at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet._render(MonitoringInvokerPortlet.java:363)
              at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.render(MonitoringInvokerPortlet.java:257)
              at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1492)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              yvonne.han Yvonne Han
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                39 weeks ago

                  Packages

                  Version Package
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  7.3.10 DXP GA1
                  Master