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

Site admin user can not see global site result when searching everywhere

    Details

      Description

      Steps to reproduce:

      1. As portal admin add an image to DM in the global site
      2. Create a site "test site"
      3. Create a user "site admin"
      4. Add the user as a site admin to the site
      5. Login as that user
      6. Go to Web Content
      7. Try to add an image in the content field
      8. On the Select Item page, click Everywhere in the Filter and Order
      9. Assert the image from the global site shows in the search result

      Expected Result
      The image from the global site shows in the search result

      Actual Result
      Nothing shows and error throws on the console.

      2020-09-10 02:40:33.573 ERROR [http-nio-8080-exec-8][IncludeTag:128] Current URL /group/site/~/control_panel/manage/-/select/image%2Curl/_com_liferay_journal_web_portlet_JournalPortlet_content_INSTANCE_xvldxjjaEditorselectItem?doAsUserId=um%2BxXulf7cigXI5WEss8oQ%3D%3D&refererPlid=24&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_0_json=%7B%22desiredItemSelectorReturnTypes%22%3A%22com.liferay.item.selector.criteria.URLItemSelectorReturnType%2Camimagefileentry%22%7D&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_1_json=%7B%22desiredItemSelectorReturnTypes%22%3A%22com.liferay.item.selector.criteria.URLItemSelectorReturnType%22%7D&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_selectedTab=Documents%20and%20Media&p_p_auth=f8gPTahl&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_folderId=0&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_keywords=&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_scope=everywhere generates exception: com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 40760 must have VIEW permission for com.liferay.portal.kernel.model.Group 20123
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 40760 must have VIEW permission for com.liferay.portal.kernel.model.Group 20123
              at com.liferay.portal.service.permission.GroupPermissionImpl.check(GroupPermissionImpl.java:54)
              at com.liferay.portal.kernel.service.permission.GroupPermissionUtil.check(GroupPermissionUtil.java:30)
              at com.liferay.portal.service.impl.GroupServiceImpl.getGroup(GroupServiceImpl.java:238)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.liferay.portal.kernel.service.GroupServiceUtil.getGroup(GroupServiceUtil.java:149)
              at com.liferay.item.selector.taglib.internal.display.context.RepositoryEntryBrowserDisplayContext.getGroupCssIcon(RepositoryEntryBrowserDisplayContext.java:39)
              at org.apache.jsp.repository_005fentry_005fbrowser.page_jsp._jspService(page_jsp:1464)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
      

        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:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master