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

NPE exception when adding a file to CMIS repository

    Details

      Description

      Preconditions:

      1. Empty Liferay installation

      Steps to reproduce:

      1. Start Alfresco VM.
      2. In Liferay change the setting in portal-ext.porperties to include.
        company.security.auth.type=screenName
        session.store.password=true
        
      3. Start Liferay.
      4. Add User (This is the default user for Alfresco)
        • Screen Name: admin
        • Password:admin
        • Role:Administrator
      5. Sign Out and Sign in as admin.
      6. Add a Page and add Documents and Media portlet to that page.
      7. Add Repository (This important step)
      8. Save.
      9. Add file to CMIS repository. (Exception does not occur without Add repository first)
      10. Upload PDF document.

      Expected Result:
      Succeed to upload a file to CMIS repository.

      Actual Result:
      Assert that " Documents and Media is temporarily unavailable. " and the console throws the following error:

      09:36:23,838 ERROR [RuntimePageImpl-3][render_portlet_jsp:132] null
      java.lang.NullPointerException
              at com.liferay.portal.repository.cmis.CMISRepository.addFileEntry(CMISRepository.java:167)
              at com.liferay.portal.kernel.repository.cmis.CMISRepositoryHandler.addFileEntry(CMISRepositoryHandler.java:57)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.addFileEntry(DLAppServiceImpl.java:301)
              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:55)
              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.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.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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      

        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, 49 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1