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

Blank screen and View permission stack trace appears in Documents and Media after submitting document for publication

Details

    Description

      Reproduced Steps:

      1.As admin login, create a new site role named "siteRole" with the following settings
      grant all Document and Media permission(check the all checkbox).
      2. Create one user named "user1" and join the (Liferay) site, and then assign "siteRole" with (Liferay) to the "user1".
      3. Go to Site(Liferay) > Contents > Document and Media > i(info) button > ⋮ button > Edit > Default Workflow for all Document Types:Single Approver > Save
      4. Use "user1" login, go to Site(Liferay) > Contents > Document and Media > + button > Basic Document > select a file > Submit for Publication

      Actual Result: The Document and Media portlet will be broken. The user can't see any documents

      06:57:58,645 ERROR [http-nio-9080-exec-3][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdmi
      nPortlet&p_p_lifecycle=0&p_p_state=maximized generates exception: com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 36102 must
       have VIEW permission for com.liferay.portal.kernel.repository.model.FileEntry 36223
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 36102 must have VIEW permission for com.liferay.portal.kernel.repository.mod
      el.FileEntry 36223
              at com.liferay.portlet.documentlibrary.service.permission.DLFileEntryPermission.check(DLFileEntryPermission.java:88)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileVersionServiceImpl.getLatestFileVersion(DLFileVersionServiceImpl.java:68)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
              at com.liferay.document.library.kernel.service.DLFileVersionServiceUtil.getLatestFileVersion(DLFileVersionServiceUtil.java:63)
              at com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl.getLatestFileVersion(DLFileEntryImpl.java:236)
              at com.liferay.portal.kernel.bean.AutoEscapeBeanHandler.invoke(AutoEscapeBeanHandler.java:63)
              at com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry.getLatestFileVersion(LiferayFileEntry.java:272)
              at com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry.getLatestFileVersion(LiferayFileEntry.java:264)
              at org.apache.jsp.document_005flibrary.view_005fentries_jsp._jspService(view_005fentries_jsp:908)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      

      Expected behavior
      The user should see the document.

      Attachments

        Issue Links

          Activity

            People

              summer.zhang Summer Zhang
              hai.yu Hai Yu
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 1 week, 4 days ago

                Packages

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