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

Unable to use .png files as image portrait

    Details

    • Fix Priority:
      3

      Description

      With fix pack portal-144-62210 on Linux OS, it is no longer possible to use .png images as user portrait

      Reproduction steps:

      1) Patch 6.2 EE with portal-144, start it on a Linux OS, login as Admin
      2) On the top-right corner, click on your user name and in the action menu, select "My Account"
      3) Update your profile picture with any given picture with .png extension
      4) Save

      Expected: The operation to complete successfully
      Actual behavior: The portlet will crash ("Account Settings is temporarily unavailable.") and the server will print:

      07:15:26,185 ERROR [http-bio-8080-exec-3][render_portlet_jsp:132] null
      java.lang.IllegalArgumentException: Unknown image type 0
          at java.awt.image.BufferedImage.<init>(BufferedImage.java:501)
          at com.liferay.portal.image.ImageToolImpl.doScale(ImageToolImpl.java:628)
          at com.liferay.portal.image.ImageToolImpl.scale(ImageToolImpl.java:586)
          at com.liferay.portal.kernel.image.ImageToolUtil.scale(ImageToolUtil.java:234)
          at com.liferay.portal.service.impl.UserLocalServiceImpl.updatePortrait(UserLocalServiceImpl.java:4975)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
          at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:65)
          at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
          at com.liferay.portal.cache.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:51)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      

      Branch:
       Reproduced on ee-6.2.x @ 073cbc3fcedab7dfa457e49ece4cef2a6b365ba9

      Master:
      Not applicable because -----LPS-69848----- is a 6.2x fix only. See below for details

       Caused by -----LPS-69848-----, because:
       Reproduced on ee-6.2.x @ c84af6b6ea672649b4ab63cdd484ae1ebd57f932
       Not reproducible on ee-6.2.x @ aed402c2743345dd32ccd28de36124a2894d894e

       Not reproducible with portal-143-6210

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              omar.ezzine Omar Ezzine (Inactive)
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 22 weeks ago

                  Packages

                  Version Package