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

DDM Field Upload field attachment missing when upgraded to 7.0 D&M field

    Details

      Description

      Reproduced on:
      MySQL 5.7
      ee-6.1.20 > ee-7.0.x GIT ID: b9ce80a0b1579f9538e02390a7339ac1c97dd32c.

      Not Reproducible on:
      MySQL 5.7
      ee-6.2.30 > ee-7.0.x GIT ID: b9ce80a0b1579f9538e02390a7339ac1c97dd32c.

      Steps to Reproduce:

      1. Import attached sql dump into MySQL 5.7
      2. Add attached data folder to ee-7.0.x bundle
      3. Upgrade database to 7.0 using the upgrade-tool
      4. Start upgraded 7.0 portal
      5. Go to Content > Dynamic Data Lists
      6. View Test List
      7. Assert File Upload field document name displays
      8. View record with File Upload field
        • Expected Result:
          Document displays and can be downloaded by the admin when viewing DDL record details.
        • Actual Result:
          When viewing DDL record details, the document does not display and cannot be downloaded by the user.
      9. Go to Content > Documents and Media
        • Expected Result:
          Documents and Media admin portlet displays with uploaded documents.
        • Actual Result:
          Documents and Media admin portlet is blank. Error is thrown:
          21:26:43,258 ERROR [http-nio-8080-exec-4][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=10154, name=com.liferay.document.library.kernel.model.DLFolder, primKey=13535, scope=4}
          com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=10154, name=com.liferay.document.library.kernel.model.DLFolder, primKey=13535, scope=4}
          	at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.hasResourcePermission(ResourcePermissionLocalServiceImpl.java:710)
          	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
          	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
          	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
          	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
          	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
          	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
          	at com.liferay.portal.service.impl.ResourceLocalServiceImpl.hasUserPermissions(ResourceLocalServiceImpl.java:448)
          	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
          	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
          	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
          	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
          	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
          	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
          	at com.liferay.portal.kernel.service.ResourceLocalServiceUtil.hasUserPermissions(ResourceLocalServiceUtil.java:65)
          	at com.liferay.portal.security.permission.AdvancedPermissionChecker.doCheckPermission(AdvancedPermissionChecker.java:614)
          	at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasUserPermissionImpl(AdvancedPermissionChecker.java:997)
          	at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermissionImpl(AdvancedPermissionChecker.java:966)
          

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 20 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.1 CE GA2