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

Thumbnails for DOCX files are not generated in Documents and Media library

    Details

      Description

      When I upload MS Word files to DM thumbnails are only generated for DOC but not for DOCX files.

      Steps to reproduce:

      • Download LR tomcat bundle liferay-ce-portal-tomcat-7.1.1-ga2-20181112144637000.7z
      • Start openoffice/libreoffice in server mode soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;"
      • activate systemsettings for openoffice
      • upload DOC and DOCX file to DM

      Current behavior:

      • thumbnail is only available for DOC

      Expected behavior

      • thumbnails are available for DOC and DOCX

       

      Possible reason:

      com.liferay.document.library.document.conversion-1.0.11.jar included in Liferay CE Collaboration - Liferay CE Document Library - Impl.lpkg contains an old version jodconverter-2.2.0 jar.

      This version does not support docx files yet (see Release notes: JODConverter 2.2.2

      • added docx, xlsx, and pptx (supported by OOo since v3.0) to default formats)

      Therefore in DocumentConversionImpl method _populateConversionsMap() there will not be a mapping available for docx files.

      The correct version of jodconverter is available in webapps\ROOT\WEB-INF\lib but obviously not used.

       

        Attachments

        1. 1.PNG
          1.PNG
          67 kB
        2. 2.PNG
          2.PNG
          59 kB
        3. 3.PNG
          3.PNG
          34 kB
        4. 4.PNG
          4.PNG
          25 kB

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  46 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP8
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master