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

WebDAV checkin of documents fails often on Windows environment when using FilesystemStore and OpenOffice previews enabled

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 CE GA1, 6.2.1 CE GA2, 6.2.10 EE GA1
    • Fix Version/s: None
    • Component/s: DM > WebDAV
    • Labels:
      None
    • Fix Priority:
      3
    • OS:
      Windows Server 2008
    • JDK:
      Oracle Sun JDK 7
    • Application Servers:
      Apache Tomcat 7.0.42
    • Databases:
      SQL Server 2008 R2
    • Device Type:
      Desktop

      Description

      In one of our projects we extensively use the WebDAV-capabilities of Liferay. For performance reasons we decided to use the AdvancedFilesystemStore as backend for document library. If (and only if) the server is running on windows (Win7) with NTFS-filesystem, the checkin of a document often fails, with the result, that the document keeps checked out. (We use MS Office as WebDAV-Client). When switching to DBStore the issue disappears. When turning off the OpenOffice-preview (we use LibreOffice as is seems more stable) in backend the issue disappears as well. And finally on my developer-linux box, i've never seen this issue
      I'm not sure if i've seen this on 6.1.

      A further analysis of the problem shows that the method public boolean move(File source, File destination of the class {{
      com.liferay.portal.util.FileUtilImpl}} fails to rename the PWC-version to the final version of the document. This class makes use of the Apache Common IO (version 2.1) for their file-operations. But there is no problem, i think. In my opinion, the actual cause is that the PWC-version of the document is locked, while trying to rename it. A remote debugging session shows, that it is locked because liferay is generating previews from it in class com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener. This is explaining, why this only happens, when OpenOffice-previews are enabled.

      The preview generation takes some seconds depending on type and size of the document. During this time it is impossible to rename the PWC-file.

      A final test shows, that i might be right: i've saved the document in ms office manually and waited a couple of seconds before closing the document and finally i successfully checked in the document.

      I hope for some input from liferay devs, as this bug actually prevents productive use.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              ronald.mueller Ronald Müller
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                4 years, 44 weeks, 1 day ago

                Packages

                Version Package