PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-37433

com.liferay.portal.image.ImageToolImpl.encodeGIF fails on updated JDK

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 4 results 

      Description

      When launching LP 6.1 GA2 on a JDK/JRE 7 U 25 (june 2013), we have an error on com.liferay.portal.image.ImageToolImpl.encodeGIF() :

      java.awt.image.RasterFormatException: Incorrect scanline stride: 32
      at sun.awt.image.ByteComponentRaster.verify(ByteComponentRaster.java:894)

      (full stack trace on attachment)

      I think it comes from a change in the JDK, dating of april 2013 (post JDK 7U15), correcting the security alert CVE-2013-0809.

      (cf : http://hardik05.wordpress.com/category/java-0-day-analysis/)

      The only workaround I see is to deploy on apas JDK (7U15 seem fine)

      1. catalina.out.txt
        97 kB
        Christophe Cariou
      1. calendar_drop_shadow.png
        1 kB

        Issue Links

          Activity

          Hide
          Adolfo Benedetti added a comment -

          confirmed in JDK 6:

          java version "1.6.0_51"
          Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508)
          Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)

          Show
          Adolfo Benedetti added a comment - confirmed in JDK 6: java version "1.6.0_51" Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508) Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)
          Hide
          Ryan Park added a comment -

          You're my hero!

          Show
          Ryan Park added a comment - You're my hero!
          Hide
          Zsolt Balogh added a comment -

          James had fixed the png. I have created another issue to check if there's a need for a code fix: LPS-37920

          Show
          Zsolt Balogh added a comment - James had fixed the png. I have created another issue to check if there's a need for a code fix: LPS-37920
          Hide
          Keval Mehta added a comment -

          Guys
          Can you let me know what PNG was changed. We are having the same issue with our Sales Demo Bundle.

          Thanks
          Keval

          Show
          Keval Mehta added a comment - Guys Can you let me know what PNG was changed. We are having the same issue with our Sales Demo Bundle. Thanks Keval
          Hide
          Zsolt Balogh added a comment - - edited

          Hi Keval,

          (EDIT) I have attached the png to the issue. Please replace every occurrence of this in the portal (even in your own themes) as this png is copied when the theme is built.

          If you are not building from source, you'll need to replace the png in all of the themes! (classic and Control Panel as well).

          Cheers,
          Zsolt

          Show
          Zsolt Balogh added a comment - - edited Hi Keval, (EDIT) I have attached the png to the issue. Please replace every occurrence of this in the portal (even in your own themes) as this png is copied when the theme is built. If you are not building from source, you'll need to replace the png in all of the themes! (classic and Control Panel as well). Cheers, Zsolt
          Hide
          Julian B added a comment -

          Hi Zsolt,

          I wasn't able to load the png from the URL you provided (404 Not Found). What's the name of the png that should be replaced?

          Thanks,
          Julian

          Show
          Julian B added a comment - Hi Zsolt, I wasn't able to load the png from the URL you provided (404 Not Found). What's the name of the png that should be replaced? Thanks, Julian
          Hide
          Zsolt Balogh added a comment -

          Hi Julian,

          I have attached the image to the ticket.

          Zsolt

          Show
          Zsolt Balogh added a comment - Hi Julian, I have attached the image to the ticket. Zsolt
          Hide
          Keval Mehta added a comment -

          Thanks Zsolt.

          Show
          Keval Mehta added a comment - Thanks Zsolt.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 1 week ago

                Development

                  Structure Helper Panel