Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
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
Issue Links
- relates to
-
JRACLOUD-25744 Attaching certain JPGs causes Attachments section of issue view to not render
- Closed