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

Missing content in CMIS repository (web service) where some file is locked

    Details

    • Story Points:
      1
    • Fix Priority:
      3

      Description

      Cannot show files where at least one file is locked for offline edit.
       

      Steps to reproduce:

      1. Add repository to DM
        1. Repository type = CMIS Repository (Web Services)
        2. As link for all services I used [ip:port]/alfresco/cmisws/cmis?wsdl
      2. Open created repository
      3. Open folder "Shared"
      4. Add some documents if folder is empty
      5. Checkout some file

      Actual Result > All documents in folder are not visible
      Expected Result > Documents should be visible

      Error log

      2018-01-22 14:06:08.767 ERROR [http-nio-8080-exec-3][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_folderId=37598&_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect=http%3A%2F%2F192.168.88.153%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%3D37470%26_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect%3Dhttp%253A%252F%252F192.168.88.153%253A8080%252Fgroup%252Fguest%252F%257E%252Fcontrol_panel%252Fmanage%253Fp_p_id%253Dcom_liferay_document_library_web_portlet_DLAdminPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526_com_liferay_document_library_web_portlet_DLAdminPortlet_javax.portlet.action%253D%25252Fdocument_library%25252Fedit_file_entry%2526_com_liferay_document_library_web_portlet_DLAdminPortlet_cmd%253Dcheckout%2526_com_liferay_document_library_web_portlet_DLAdminPortlet_fileEntryId%253D37604%2526_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect%253Dhttp%25253A%25252F%25252F192.168.88.153%25253A8080%25252Fgroup%25252Fguest%25252F%25257E%25252Fcontrol_panel%25252Fmanage%25253Fp_p_id%25253Dcom_liferay_document_library_web_portlet_DLAdminPortlet%252526p_p_lifecycle%25253D0%252526p_p_state%25253Dmaximized%252526p_p_mode%25253Dview%252526_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName%25253D%2525252Fdocument_library%2525252Fview_folder%252526_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId%25253D37598 generates exception: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Version Series does not exist!
      org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Version Series does not exist!
      	at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractWebServicesService.convertException(AbstractWebServicesService.java:154)
      	at org.apache.chemistry.opencmis.client.bindings.spi.webservices.VersioningServiceImpl.getAllVersions(VersioningServiceImpl.java:152)
      	at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getAllVersions(DocumentImpl.java:344)
      	at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getAllVersions(DocumentImpl.java:328)
      	at com.liferay.document.library.repository.cmis.internal.model.CMISFileEntry.getAllVersions(CMISFileEntry.java:756)
      	at com.liferay.document.library.repository.cmis.internal.model.CMISFileEntry.getLatestFileVersion(CMISFileEntry.java:325)
      	at com.liferay.document.library.repository.cmis.internal.model.CMISFileEntry.getFileVersion(CMISFileEntry.java:203)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
      	at com.liferay.portal.kernel.repository.proxy.FileEntryProxyBean.getFileVersion(FileEntryProxyBean.java:134)
      	at org.apache.jsp.document_005flibrary.view_005fentries_jsp._jspService(view_005fentries_jsp:912)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:417)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:428)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      

      Priority L3 + S3 = 3 

      Reproducible:
      Ony if repository is setup with Web Service.

      liferay-ce-portal-tomcat-7.0-nightly-3b4d4367de42688ee4d453766be11adb1687edc5 + tomcat 8.0.32 + Mysql 5.6 + Alfresco Community 5.2.0 (re21f2be5-b22)

      liferay 7.0.4 ga5 + Mysql 5.6 + Alfresco Community 5.2.0 (re21f2be5-b22)
       
      Not reproducible:
      Repository with AtomPub

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Reporter:
              michal.kalita Michal Kalita
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package