Error rendering 'com.atlassian.jira.jira-view-issue-plugin:attachmentmodule'.

Philippe Leménager
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

Hello

We have an issue with attached files and after selecting this issue, we have the error message given in the title of this question.

I googled it and I saw Jira Issue JRA-29357 that is Unresolved and Unassigned.

I've exported the files from data directory to my computer and I can already open the files.

The "thumbs" sub-directory is empty. I tried to erase it and renew the page then I got the same error message and the sub-directory is recreated and is empty again.

Does anyone have a solution ?

2 answers

1 accepted

0 votes
Answer accepted
Henning Tietgens
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

You can use the manage attachments link to delete the attachments (after downloading, if you don't have them already).

After all attachments are removed the display should be back to normal. Now you can upload the attachments one by one to identify the attachment where the error occurs. Now you should rename this attachment, so that JIRA doesn't try to display it (something like .rename_me at the end should work).

Henning

Philippe Leménager
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

Thanks for your answer.

In fact, I tried to delete the uploads one by one and recharge the page after each delete and it works. I could preserve 12 files.

The strange thing is that the crashed files can be read on my computer. I've tried to upload them again and it failed.
I've noticed that the author of the issue have tried to upload the crashed files several times. Could it be the cause of the problem ?

Henning Tietgens
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

IMO the Java code used to display the attachment has a problem with the attachment. Details should be visible in the log file.

Philippe Leménager
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

I've found thi error in catalina.out :

2013-05-13 12:28:28,064 ajp-bio-8009-exec-1578 ERROR chuette 748x86063x1 1v32s19 90.7.222.63 /plugins/servlet/streams [atlassian.streams.api.StreamsEntry] An unknown error occurred while rendering a Streams entry
java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match
at java.awt.image.ColorConvertOp.filter(Unknown Source)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(Unknown Source)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)

It seems that it concerns JPEGImageReader but I don't understand what it means exactly.
Can it be caused by a bad JPEG format in entry ?

Henning Tietgens
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

Yes, seems to be a malformed jpeg file (or a bug in the jpeg reading method). In http://stackoverflow.com/questions/10416378/imageio-read-illegal-argument-exception-raster-bands-colour-space-components it's most of the time a greyscale jpeg with wrong color profile. But details are beyond my knowledge :-)

Philippe Leménager
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

OK thank you.
The author of the issue have uploaded her files in pdf and it works.
Problem solved for me.

0 votes
Philippe Leménager
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2013

Thanks for your answer.

In fact, I tried to delete the uploads one by one and recharge the page after each delete and it works. I could preserve 12 files.

The strange thing is that the crashed files can be read on my computer. I've tried to upload them again and it failed.
I've noticed that the author of the issue have tried to upload the crashed files several times. Could it be the cause of the problem ?

Suggest an answer

Log in or Sign up to answer