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

Attaching certain JPGs causes Attachments section of issue view to not render

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.4.3
    • None
    • Issue - Attachments
    • None

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Certain jpg files cause an exception to be raised which affects the rendering of the Attachment section while viewing an issue. Most jpgs do not cause this exception. Affected images do display in the "Attach Files" dialog during file attachment. Ideally JIRA could catch the exception and display a placeholder image as well as rendering the other attachments.

      The root cause of the issue seems to be the java image processor, possibly during the creation of a thumbnail. The issue was present in java 5 but was masked. When we upgraded to JIRA 4.4 we also upgraded Java and this issue is now more visible due to bug fixes in Java. (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6791502)

      The exception is "javax.imageio.IIOException: Invalid icc profile: bad sequence number" - I can provide the entire trace if that would help.

      The only images I have contain protected information. I am working to have a generic image created which I will attach to this issue. The attached screenshot is an issue with 3 attachments but none show. If I delete the offending JPG the remain two attachments are displayed properly.

      Steps to reproduce:
      1. Create an issue with attachments
      2. Attach a JPG that causes the javax.imageio.IIOException exception (I will provide)
      3. View the issue - some or all attachments will not be displayed
      4. Click "Manage Attachments" and delete the offending JPG
      5. View the issue - attachments will be displayed properly

      Attachments

        1. attachments.png
          attachments.png
          247 kB
        2. jpg_test-cmyk_standard-save.jpg
          jpg_test-cmyk_standard-save.jpg
          25 kB
        3. jpg_test-rgb_300dpi_standard-save.jpg
          jpg_test-rgb_300dpi_standard-save.jpg
          307 kB
        4. jpg_test-rgb_flat_save-for-web.jpg
          jpg_test-rgb_flat_save-for-web.jpg
          14 kB
        5. jpg_test-rgb_flat_standard-save.jpg
          jpg_test-rgb_flat_standard-save.jpg
          25 kB
        6. jpg_test-rgb_save-for-web.jpg
          jpg_test-rgb_save-for-web.jpg
          14 kB
        7. jpg_test-rgb_standard-save.jpg
          jpg_test-rgb_standard-save.jpg
          36 kB
        8. screen-capture-1.png
          screen-capture-1.png
          25 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cd5a28598431 Praecipio Consulting
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: