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

CMIS Alfresco cannot show folder content

    Details

      Description

      Steps to reproduce:

      1. Add Alfresco repository to Liferay DM (using AtomPub or Web Services)
      2. Open repository
      3. Open "Shared" folder
      4. Folder doesn't have any content, add basic document

      Actual Result:
      Web page doesn't have content

      Error log

      2018-02-08 12:28:13.548 ERROR [http-nio-8080-exec-1][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&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fview_folder&_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect=http%3A%2F%2F192.168.88.140%3A8080%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_document_library_web_portlet_DLAdminPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName%3D%252Fdocument_library%252Fview_folder%26_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId%3D37963&_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId=37964 generates exception: com.liferay.portal.kernel.repository.RepositoryException: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.document.library.repository.cmis.internal.CMISRepository.cacheFoldersAndFileEntries(CMISRepository.java:1579)
      	at com.liferay.document.library.repository.cmis.internal.CMISRepository.getFoldersAndFileEntries(CMISRepository.java:2045)
      	at com.liferay.document.library.repository.cmis.internal.CMISRepository.getFoldersAndFileEntriesCount(CMISRepository.java:792)
      	at com.liferay.document.library.repository.cmis.CMISRepositoryHandler.getFoldersAndFileEntriesCount(CMISRepositoryHandler.java:307)
      	at com.liferay.portal.kernel.repository.BaseRepositoryImpl.getFoldersAndFileEntriesAndFileShortcutsCount(BaseRepositoryImpl.java:325)
      	at com.liferay.document.library.repository.cmis.internal.RepositoryProxyBean.getFoldersAndFileEntriesAndFileShortcutsCount(RepositoryProxyBean.java:761)
      	at com.liferay.portal.kernel.repository.Repository.getFoldersAndFileEntriesAndFileShortcutsCount(Repository.java:180)
      	at com.liferay.portal.repository.capabilities.CapabilityRepository.getFoldersAndFileEntriesAndFileShortcutsCount(CapabilityRepository.java:660)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1588)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1575)
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1565)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      

      Document is added successfully, in Alfresco is visible

      Expected result: Folder with added document is visible

      Priority L4 + S4 = 5 

      Reproducible:
      liferay-ce-portal-tomcat-7.0-nightly-012c6ad4ce60c6a3074882a4337420aecb16af24, mysql 5.6, Alfresco CE 5.2.0, CentOS, Chromium 64

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              michal.kalita Michal Kalita
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 9 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.0 M2
                  7.1.X
                  Master