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

DM CMIS Alfresco (AtomPub) - File checkout results in NullPointerException and file no longer accessible Alfresco

    Details

      Description

      Steps:

      1. In Documents and Media, add a Repository - Type: CMIS Repository (AtomPub), URL: http://IP-Address-of-the-Alfresco-Server:8080/alfresco/cmisatom, ID: (leave blank for Liferay to generate automatically). Save.
      2. Navigate in that repository to a folder containing a file you want to edit.
      3. Checkout the file

      Expected Result:
      The file should be checked out in Liferay, so the Liferay user can edit the file and check it back in.

      Actual Result:
      A NullPointerException occurs. The file is no longer shown in Liferay.

      Workaround:
      Cancel checkout from within Alfresco. After doing so, the file is available again in Documents and Media.

      Stack Trace:
      16:11:18,107 ERROR [http-nio-8090-exec-4][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=21236 generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      at com.liferay.document.library.repository.cmis.internal.model.CMISFileEntry.hasLock(CMISFileEntry.java:600)
      at org.apache.jsp.document_005flibrary.view_005fentries_jsp._jspService(view_005fentries_jsp:1359)
      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:309)
      at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:320)
      at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker$JspServletWrapper.service(PortletTracker.java:1427)
      at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50)
      at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker$RestrictPortletServletRequestFilter.doFilter(PortletTracker.java:1462)
      at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:121)
      at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45)
      at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker$RestrictPortletServletRequestFilter.doFilter(PortletTracker.java:1462)
      at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:121)
      at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45)
      at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker$RestrictPortletServletRequestFilter.doFilter(PortletTracker.java:1462)

        Attachments

          Activity

            People

            Assignee:
            melody.wu Melody Wu
            Reporter:
            james.hinkey James Hinkey
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.0.0 CE RC1