Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-22011

Exception is thrown when trying to upload GIF file as Avatar

    XMLWordPrintable

Details

    • 4
    • 2
    • Severity 3 - Minor
    • Hide
      Atlassian Update – 16 November 2017

      Hi everyone,

      The issue has not collected enough votes, watches, comments or support cases during it's lifetime. In this sense overal interest in the reported problem is low.
      Jira team is focusing on bigger and more impactful issues at the moment and we are not likely to look at the current bug soon. Therefore I'm resolving the issue as Timed Out.

      Atlassian will continue to watch issue for the further updates, so please don't hesitate to share your feedback in the issue comments.

      Cheers,
      Ignat Alexeyenko
      Jira bugmaster.

      Show
      Atlassian Update – 16 November 2017 Hi everyone, The issue has not collected enough votes, watches, comments or support cases during it's lifetime. In this sense overal interest in the reported problem is low. Jira team is focusing on bigger and more impactful issues at the moment and we are not likely to look at the current bug soon. Therefore I'm resolving the issue as Timed Out . Atlassian will continue to watch issue for the further updates, so please don't hesitate to share your feedback in the issue comments. Cheers, Ignat Alexeyenko Jira bugmaster.

    Description

      http://localhost:8080/secure/project/AvatarPicker!upload.jspa [500ErrorPage.jsp] Exception caught in 500 page Unexpected block type 0!
      javax.imageio.IIOException: Unexpected block type 0!
      	at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:722)
      	at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:794)
      	at javax.imageio.ImageIO.read(ImageIO.java:1422)
      	at javax.imageio.ImageIO.read(ImageIO.java:1282)
      	at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:270)
      

      Some GIF files trigger this bug.
      I found a bug report of this error on SUN Bug Database: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6358674

      As this is a know bug of Java (since 2005 according to SUN Bug Database), JIRA could better handle this exception and show a more graceful message instead of exploding an exception on the screen!

      I'm also attaching a GIF file that triggers the exception.

      Workaround

      Convert the GIF file to another format like JPEG or PNG.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tsantos Thiago Auler dos Santos [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: