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

CMMException causes image attachment thumbnails to not appear

    XMLWordPrintable

Details

    Description

      Some images suspected to contain EXIF data do not appear as thumbnails in the attachments section in the view issue screen.

      The attached file large2.jpg can be used to reproduce this problem. Another file large2_fixed.jpg is the one that is fixed using the workaround in the aforementioned KB.

      Example log taken from JIRA Studio:

      @400000004cf683421b5c6adc 2010-12-01 12:17:44,180 ajp-j2ee.instance.jirastudio.com-jira%2F127.0.0.104-8009-6 ERROR username 737x1187497x1 1rk04lp 202.169.29.34
      /browse/TEST-202 [webwork.util.ValueStack] query="/thumbnails" {[id="null" type="5" values=""]} {[id="thumbnails" type="8" values=""]}
      @400000004cf683421b5c7694 java.lang.reflect.InvocationTargetException
      @400000004cf683421b5c7694       at sun.reflect.GeneratedMethodAccessor861.invoke(Unknown Source)
      @400000004cf683421b5c7a7c       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      @400000004cf683421b5cff4c       at java.lang.reflect.Method.invoke(Method.java:597)
      @400000004cf683421b5cff4c       at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      @400000004cf683421b5d0334       at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      @400000004cf683421b5d071c       at webwork.util.ValueStack.findValue(ValueStack.java:412)
      @400000004cf683421b5d0b04       at webwork.util.SimpleTest.test(SimpleTest.java:415)
      @400000004cf683421b5d4d6c       at webwork.util.ValueStack.test(ValueStack.java:157)
      @400000004cf683421b5d5154       at webwork.view.taglib.IfTag.doStartTag(IfTag.java:40)
      @400000004cf683421b5d553c       at org.apache.jsp.includes.panels.issue.view_005fattachments_jsp._jspx_meth_webwork_005fif_005f13(view_005fattachments_jsp.java:
      2124)
      @400000004cf683421b5d6cac       at org.apache.jsp.includes.panels.issue.view_005fattachments_jsp._jspService(view_005fattachments_jsp.java:505)
      @400000004cf683421b5d7094       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      @400000004cf683421b5d747c       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      ...
      @400000004cf683421b61dd64 Caused by: java.awt.color.CMMException: Invalid image format
      @400000004cf683421b61e14c       at sun.awt.color.CMM.checkStatus(CMM.java:131)
      @400000004cf683421b61e534       at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
      @400000004cf683421b61f8bc       at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:516)
      @400000004cf683421b61fca4       at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1114)
      @400000004cf683421b62008c       at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
      @400000004cf683421b620474       at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1082)
      @400000004cf683421b62085c       at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:897)
      @400000004cf683421b621414       at javax.imageio.ImageIO.read(ImageIO.java:1422)
      @400000004cf683421b621414       at javax.imageio.ImageIO.read(ImageIO.java:1326)
      @400000004cf683421b6217fc       at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:281)
      

      Attachments

        1. large2_fixed.jpg
          large2_fixed.jpg
          580 kB
        2. large2.jpg
          large2.jpg
          633 kB

        Issue Links

          Activity

            People

              rsmart metapoint
              amohdaris Azwandi Mohd Aris (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: