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

Documents and Media is temporarily unavailable when viewing the document type with document type permissions

Details

    Description

      Steps to reproduce:

      1. Enable the DM Engine feature
      2. Add a new role and give the role all permissions about the document type
      3. Add a new user and assign this role the new user
      4. Use TestTest, add a new document type with some fields
      5. Login with the new user
      6. Go to DM to view the document type

      Expected Result:
      Able to view the document type fields and able to edit it.

      Actual Result:
      Documents and Media is temporarily unavailable.

      2020-11-18 06:03:03.226 ERROR [http-nio-8080-exec-2][render_portlet_jsp:131] null
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 39066 must have VIEW permission for com.liferay.document.library.kernel.model.DLFileEntryMetadata-com.liferay.dynamic.data.mapping.model.DDMStructure 39053
              at com.liferay.dynamic.data.mapping.internal.security.permission.resource.DDMStructureModelResourcePermission.check(DDMStructureModelResourcePermission.java:55)
              at com.liferay.dynamic.data.mapping.internal.security.permission.resource.DDMStructureModelResourcePermission.check(DDMStructureModelResourcePermission.java:68)
              at com.liferay.dynamic.data.mapping.service.impl.DDMStructureServiceImpl.getStructure(DDMStructureServiceImpl.java:240)
              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.dynamic.data.mapping.service.DDMStructureServiceUtil.getStructure(DDMStructureServiceUtil.java:193)
              at org.apache.jsp.document_005flibrary.edit_005ffile_005fentry_005ftype_jsp._jspService(edit_005ffile_005fentry_005ftype_jsp:450)
              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)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      

      Attachments

        Issue Links

          Activity

            People

              yvonne.han Yvonne Han
              yvonne.han Yvonne Han
              Marta Elicegui Marta Elicegui
              Adolfo Pérez Adolfo Pérez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 40 weeks, 6 days ago

                Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master