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

DM doesn't handle gracefully RepositoryExceptions

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.0 CE RC5
    • Fix Version/s: 6.2.0 CE RC5
    • Component/s: DM
    • Labels:
      None
    • Environment:
      Tomcat 7.0.40 + MySQL 5. Portal master GIT ID: ef6f5de96121325240704b44b36a00d62f533d1b.
      Plugins GIT ID: 5ed74cd7fc235cec0cd5ffdd2518e0ece655c601.

    • Fix Priority:
      3

      Description

      Attempting to edit a file in Sharepoint causes console errors and the DM portlet to crash.

      Steps to reproduce:

      1. Deploy Sharepoint plugin and configure additional configuration steps as shown in the Prerequisites section here: Prerequisites – OR – Alternate Wiki Link
      2. Add User
        • Username: administrator
        • Password: password
      3. Add administrator role to the new user
      4. Sign in as Administrator
      5. Add page
      6. Add Documents and Media portlet to page
      7. Add Sharepoint Repository
      8. Add a basic document to the repository with just a title.
      9. Edit the title of the basic document
      10. Assert message "Documents and Media is temporarily unavailable"
      11. Assert console error:
        com.liferay.portal.kernel.repository.RepositoryException: Unable to check out file entry 10711
        	at com.liferay.sharepoint.repository.SharepointRepository.checkOutFileEntry(SharepointRepository.java:174)
        	at com.liferay.sharepoint.repository.SharepointRepository.updateFileEntry(SharepointRepository.java:581)
        	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
        	at com.liferay.portal.repository.proxy.BaseRepositoryProxyBean.updateFileEntry(BaseRepositoryProxyBean.java:760)
        	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.updateFileEntry(DLAppServiceImpl.java:3014)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
        	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
        	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
        	at com.liferay.portlet.documentlibrary.service.DLAppServiceUtil.updateFileEntry(DLAppServiceUtil.java:2362)
        	at com.liferay.portlet.documentlibrary.action.EditFileEntryAction.updateFileEntry(EditFileEntryAction.java:1062)
        	at com.liferay.portlet.documentlibrary.action.EditFileEntryAction.processAction(EditFileEntryAction.java:154)
        	at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:166)
        	at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:216)
        	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
        

      Expected results:
      After editing the Sharepoint document, it should save your changes.

      Actual results:
      Attempting to edit a Sharepoint document breaks the DM portlet and console errors are thrown

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 18 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE RC5