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

A user cannot search for a document in Alfresco

    Details

      Description

      Steps to reproduce:

      1. Download/install Alfresco for Docker (Steps in LPS-129490)
      2. Create new user in Liferay (admin/admin), give permissions as administrator and log in
      3. Mount Alfresco via AtomPub (https://github.com/liferay/liferay-qa-ee/blob/liferay-qa-docs/tutorials/cmis/pages/setting-up-alfresco.markdown)
      4. Navigate into the Alfresco mount
      5. Create some documents if there are none
      6. Search for any document title

      Expected result:
      The documents with the title are returned.

      Actual result:
      No documents are returned.

      Errors are thrown in the console:

      2021-03-23 03:46:38.205 ERROR [http-nio-9080-exec-9][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?_com_liferay_document_library_web_portlet_DLAdminPortlet_keywords=document&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_repositoryId=37179&p_p_state=maximized&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fsearch&_com_liferay_document_library_web_portlet_DLAdminPortlet_searchRepositoryId=37179&p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId=37258&_com_liferay_document_library_web_portlet_DLAdminPortlet_searchFolderId=37258&_com_liferay_document_library_web_portlet_DLAdminPortlet_showSearchInfo=true&refererPlid=1&p_p_auth=06Ouwebl generates exception: com.liferay.portal.kernel.repository.RepositoryException: com.liferay.document.library.kernel.exception.NoSuchFolderException: No CMIS folder with {folderId=0}
      com.liferay.document.library.kernel.exception.NoSuchFolderException: No CMIS folder with {folderId=0}
              at com.liferay.document.library.repository.cmis.internal.CMISRepository.toFolderId(CMISRepository.java:2283)
              at com.liferay.document.library.repository.cmis.internal.CMISRepository.getFolder(CMISRepository.java:2017)
              at com.liferay.document.library.repository.cmis.internal.CMISRepository.getCmisFolder(CMISRepository.java:1852)
              at com.liferay.document.library.repository.cmis.internal.CMISRepository.cacheFoldersAndFileEntries(CMISRepository.java:1536)
              at com.liferay.document.library.repository.cmis.internal.CMISRepository.getFoldersAndFileEntries(CMISRepository.java:2064)
              at com.liferay.document.library.repository.cmis.internal.CMISRepository.getFoldersAndFileEntriesCount(CMISRepository.java:792)
              at com.liferay.document.library.repository.cmis.CMISRepositoryHandler.getFoldersAndFileEntriesCount(CMISRepositoryHandler.java:313)
              at com.liferay.portal.kernel.repository.BaseRepositoryImpl.getFoldersAndFileEntriesAndFileShortcutsCount(BaseRepositoryImpl.java:227)
              at com.liferay.document.library.repository.cmis.internal.RepositoryProxyBean.getFoldersAndFileEntriesAndFileShortcutsCount(RepositoryProxyBean.java:461)
              at com.liferay.portal.kernel.repository.Repository.getFoldersAndFileEntriesAndFileShortcutsCount(Repository.java:117)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.liferay.portal.repository.capabilities.CapabilityRepository.getFoldersAndFileEntriesAndFileShortcutsCount(CapabilityRepository.java:577)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1662)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1649)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceImpl.java:1639)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.liferay.document.library.kernel.service.DLAppServiceWrapper.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceWrapper.java:1321)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.liferay.document.library.kernel.service.DLAppServiceWrapper.getFoldersAndFileEntriesAndFileShortcutsCount(DLAppServiceWrapper.java:1321)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      

      Reproduced on:
      Tomcat 9.0.40 + MySQL 5.7.
      7.3 DXP SP1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              austin.chiang Austin Chiang
              Participants of an Issue:
              Recent user:
              Rafaela Nascimento
              Engineering Assignee:
              Adolfo PĂ©rez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks, 3 days ago

                  Packages

                  Version Package
                  7.3.X
                  7.4.0 CE GA1
                  Master