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

Unsupported image type keeps running when I add a supported image type

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.0 DXP SP2, Master
    • Fix Version/s: Master
    • Component/s: DM, DM > Administration
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Add an unsupported image type to document and media, for example, the .tiff file
      2. Check in the console log, it has a warn message:
        02:00:47,471 WARN  [liferay/document_library_image_processor-1][BaseProcessorMessageListener:40] Unable to process file version 33924
        java.io.IOException: Unsupported image type
        	at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:603)
        	at com.liferay.portal.kernel.image.ImageToolUtil.read(ImageToolUtil.java:210)
        	at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:290)
        	at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:83)
        	at com.liferay.document.library.kernel.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:53)
        	at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.generate(ImageProcessorMessageListener.java:31)
        	at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
        	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
        	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
        	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
        	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
        	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
        	at java.lang.Thread.run(Unknown Source)
        
      3. Add a supported image type to document and media, for example, the .jpg file
      4. Check in the console

      Expected result:
      No warn in console while adding the .jpg file.

      Actual result:
      The warn message keeps running for the previous unsupported file while adding the .jpg file.

      02:01:10,306 WARN  [liferay/document_library_image_processor-1][BaseProcessorMessageListener:40] Unable to process file version 33924
      java.io.IOException: Unsupported image type
      	at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:603)
      	at com.liferay.portal.kernel.image.ImageToolUtil.read(ImageToolUtil.java:210)
      	at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:290)
      	at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:83)
      	at com.liferay.document.library.kernel.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:53)
      	at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.generate(ImageProcessorMessageListener.java:31)
      	at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
      	at java.lang.Thread.run(Unknown Source)
      
      

        Attachments

          Activity

            People

            • Assignee:
              lu.liu Lu Liu
              Reporter:
              lu.liu Lu Liu
              Participants of an Issue:
              Recent user:
              Lu Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 19 weeks, 1 day ago

                Packages

                Version Package
                Master