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

Upload of too big file and resubmit of upload form results in DM temporarily unavailable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.1.1 CE GA2
    • Component/s: DM
    • Environment:
      Liferay 6.1.1 CE GA2 bundled with Tomcat 7.0.27, CentOS 2.6.32-358.6.2.el6.x86_64

      Description

      If I try to upload bigger file than it's allowed in Overall Maximum File Size in Server Administration/File Uploads, error message correctly shows.

      After that if I resubmit the empty form, "Documents and Media temporarily unavailable" error message shows.

      It should instead display message "Please enter a file with a valid file name." and it should allow to upload file again after resubmitting of empty form as it correctly does in other cases such as when uploading regular file within size limit. (only resubmit after file bigger than Overall Maximum File Size results in error about Documents and Media temporarily unavailable and inability to upload file again. User needs to repeat the upload process from scratch).

      Steps to reproduce:
      1) Deploy Documents and Media portlet to some Liferay's page.
      2) Try to upload too big file (bigger than defined Maximum File Size) using Add / Basic Document.
      3) After error message click Publish once again (with no data in form)
      Expected Result: Message "Please enter a file with a valid file name." should be displayed
      Actual Result: Message "Documents and Media is temporarily unavailable." has been shown.

      Below is exception for this operation in application server log:
      12:53:42,572 ERROR [http-bio-8180-exec-5][render_portlet_jsp:154] com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 0
      at com.liferay.portal.service.impl.RepositoryServiceImpl.checkRepository(RepositoryServiceImpl.java:73)
      at com.liferay.portal.service.impl.RepositoryServiceImpl.getRepositoryImpl(RepositoryServiceImpl.java:121)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getRepository(DLAppServiceImpl.java:2689)
      at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.addFileEntry(DLAppServiceImpl.java:254)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)

        Attachments

          Activity

            People

            • Assignee:
              ginson.ren Ginson Ren
              Reporter:
              jan.profiq Jan Hájovský (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 14 weeks, 3 days ago

                Packages

                Version Package
                6.1.2 CE GA3
                6.1.X EE
                6.2.0 CE RC1