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

Checkout file under Alfresco repository turn out to be two checkouted files

    Details

      Description

      Steps to reproduce:

      1. Add Alfresco 5.0 repository to DM
      2. Open created repository
      3. Open folder "Shared"
      4. Add some documents if the folder is empty
      5. Checkout a file

      Actual Result: The file is locked, but turn out to be two checkouted files with same name, error throws on the console:

      07:58:00,392 ERROR [http-nio-7080-exec-5][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%2Flocalhost%3A7080%2Fgroup%2Fguest%2F%7E%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_redirect%3Dhttp%253A%252F%252Flocalhost%253A7080%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%26_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId%3D30870&_com_liferay_document_library_web_portlet_DLAdminPortlet_folderId=30876 generates exception: com.liferay.portal.kernel.repository.RepositoryException: Unexpected permission action OVERRIDE_CHECKOUT
      com.liferay.portal.kernel.repository.RepositoryException: Unexpected permission action OVERRIDE_CHECKOUT
              at com.liferay.document.library.repository.cmis.internal.model.CMISModel.containsPermission(CMISModel.java:81)
              at com.liferay.document.library.repository.cmis.internal.model.CMISFileEntry.containsPermission(CMISFileEntry.java:109)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at com.liferay.portal.kernel.repository.proxy.FileEntryProxyBean.containsPermission(FileEntryProxyBean.java:64)
              at com.liferay.portlet.documentlibrary.service.permission.DLFileEntryPermission.contains(DLFileEntryPermission.java:207)
              at com.liferay.document.library.web.internal.display.context.logic.FileEntryDisplayContextHelper.hasOverrideCheckoutPermission(FileEntryDisplayContextHelper.java:74)
              at com.liferay.document.library.web.internal.display.context.logic.FileEntryDisplayContextHelper.isCancelCheckoutDocumentActionAvailable(FileEntryDisplayContextHelper.java:112)
              at com.liferay.document.library.web.internal.display.context.logic.UIItemsBuilder.addCancelCheckoutMenuItem(UIItemsBuilder.java:90)
              at com.liferay.document.library.web.internal.display.context.DefaultDLViewFileVersionDisplayContext._getMenuItems(DefaultDLViewFileVersionDisplayContext.java:317)
              at com.liferay.document.library.web.internal.display.context.DefaultDLViewFileVersionDisplayContext.getMenu(DefaultDLViewFileVersionDisplayContext.java:173)
              at com.liferay.document.library.display.context.BaseDLViewFileVersionDisplayContext.getMenu(BaseDLViewFileVersionDisplayContext.java:97)
              at com.liferay.frontend.image.editor.integration.document.library.internal.display.context.ImageEditorDLViewFileVersionDisplayContext.getMenu(ImageEditorDLViewFileVersionDisplayContext.java:79)
              at org.apache.jsp.document_005flibrary.file_005fentry_005faction_jsp._jspService(file_005fentry_005faction_jsp:539)
              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:413)
      

      Expected Result: The file is locked, no other file created and no error throws on the console.

        Attachments

        1. failed.png
          failed.png
          9 kB
        2. reproduced.mp4
          446 kB

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              yvonne.han Yvonne Han
              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:
                2 years, 39 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.0 M2
                  7.1.X
                  Master