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

Document Library CMIS upload fails when using a just created community

    Details

      Description

      Dear All,
      we have a critical bug when Liferay is configured to use CMIS document library hook and Alfresco 3.4.d or 4.0.b CE as document repository.

      When we create a new community and we upload a document for the first time, by using the Document Library, Liferay generates this exception:

      16:42:56,147 ERROR [jsp:154] com.liferay.portal.cmis.CMISException: CMIS server
      returned 409 Conflict
      at com.liferay.portal.cmis.CMISUtil._verify(CMISUtil.java:386)
      at com.liferay.portal.cmis.CMISUtil._createDocument(CMISUtil.java:204)
      at com.liferay.portal.cmis.CMISUtil._createFolder(CMISUtil.java:228)
      at com.liferay.portal.cmis.CMISUtil.createFolder(CMISUtil.java:76)
      at com.liferay.documentlibrary.util.CMISHook.getRepositoryFolderEntry(CM
      ISHook.java:444)
      at com.liferay.documentlibrary.util.CMISHook.getVersioningFolderEntry(CM
      ISHook.java:482)
      at com.liferay.documentlibrary.util.CMISHook.updateFile(CMISHook.java:38
      1)
      at com.liferay.documentlibrary.util.CMISHook.addFile(CMISHook.java:80)
      at com.liferay.documentlibrary.util.HookProxyImpl.addFile(HookProxyImpl.
      java:74)
      at com.liferay.documentlibrary.util.SafeFileNameHookWrapper.addFile(Safe
      FileNameHookWrapper.java:100)
      at com.liferay.documentlibrary.service.impl.DLLocalServiceImpl.addFile(D
      LLocalServiceImpl.java:71)
      at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionIntercept
      or.invoke(DynamicDataSourceTransactionInterceptor.java:44)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
      ethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
      ethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
      ethodAdvice.java:58)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServ
      iceImpl.addFileEntry(DLFileEntryLocalServiceImpl.java:228)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServ
      iceImpl.addFileEntry(DLFileEntryLocalServiceImpl.java:119)
      at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionIntercept
      or.invoke(DynamicDataSourceTransactionInterceptor.java:44)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
      ethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
      ethodAdvice.java:58)

      To reproduce the bug follow these steps:
      1) Activate and configure the CMIS hook in the portal-ext.propreties
      2) Create a new community
      3) Upload a document by using the community's document library

      The same bug occurs when adding the first document in a new folder.

      This bug appears to be critical for the effective use of CMIS hook. Could you please look into it?

      Thank you,
      Francesco.

        Attachments

          Activity

            People

            Assignee:
            pani.gui Pani Gui (Inactive)
            Reporter:
            fsforna Francesco Fornasari (Inactive)
            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:
              9 years, 51 weeks, 1 day ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2