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

Unable to render .tif files in Documents and Media

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.1 CE GA2, 6.1.10 EE GA1, 6.2.0 CE M2
    • Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
    • Component/s: Documents & Media
    • Labels:
      None
    • Environment:
      Tomcat 7.0.23 + MySQL 5. 6.1.x GIT ID: 3a63fb4bb9f075f250c3da617520ff9de2d35414.
      Tomcat 7.0.23 + MySQL 5. 6.2.x GIT ID: 23e8e46a9e3221ae8e14609bacdb5b0da0d61fb0.
    • Fix Priority:
      3

      Description

      After uploading a .tif file, there is no thumbnail image on the Images Home. File is successfully uploaded, but when the user clicks on the [Image], no image is displayed.

      Steps to reproduce:

      1. Add Documents and Media portlet
      2. Add > Multiple Documents
        • Upload .tif file [attached image.tif]
        • Save
        • Click <<Back
      3. image.tif file does not display [tif.jpg]
      4. Click on image.tif file; pdf preview does not display exceptions are also thrown
        15:34:55,219 ERROR [ImageProcessorImpl:181] java.lang.ArrayIndexOutOfBoundsException: 0
        java.lang.ArrayIndexOutOfBoundsException: 0
                at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:152)
                at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:195)
                at com.liferay.portal.kernel.image.ImageToolUtil.read(ImageToolUtil.java:67)
                at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:168)
                at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:66)
                at com.liferay.portlet.documentlibrary.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:38)
                at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:33)
                at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
                at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
                at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
                at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
                at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
                at java.lang.Thread.run(Thread.java:662)
        

        Attachments

        1. image.tif
          349 kB
        2. tif.JPG
          tif.JPG
          32 kB

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              christine.pince Christine Pince (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:
                8 years, 51 weeks ago

                  Packages

                  Version Package
                  --Sprint 11/12
                  6.2.0 CE M2