-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Issue - Attachments
-
None
-
3
-
5
Issue Summary
The issues/projects are exported as CSV with attachments. However, when the CSV is imported using the "External System Import" option, the thumbnails of all the attachments fail to load even after a successful import.
This is reproducible on Data Center: (yes) / (no)
Steps to Reproduce
- Create a test issue and add pictures as attachments. The thumbnails are shown!
- Export this issue as CSV by using the Export option through the Issue Search page
- Delete the issue
- The attachments automatically be removed from storage (<Jira_home>/data/attachments) and the "fileattachment" database table.
- Import the CSV file from the "External System Import" option under Administration > System
- Make sure you map the "Attachment" and "Summary" fields during the import process.
- Run through the import process. The import will be successful.
- Check the Issues, attachments will be loaded without the thumbnails
- The files and folder will be recreated and the thumbs folder will have the correct thumbnails.
Expected Results
- Attachments are exported with the ID as they are numbered in the database and as well as the folder structure
- The IDs change when they are imported to the same instance or any other
- Jira should either use the old id that comes along with the CSV file OR map the new ID's correctly in the "fileattachment" table
Actual Results
The below exception is thrown in the atlassian-jira.log file:
2022-04-01 13:43:29,901+0530 http-nio-48204-exec-4 ERROR anonymous 823x1451x1 - 127.0.0.1 /secure/attachment/10000/WhatsApp+Image+2022-03-29+at+9.16.24+PM.jpeg [c.a.j.w.servlet.viewfile.AbstractViewFileServlet] Error finding /10000/WhatsApp+Image+2022-03-29+at+9.16.24+PM.jpeg : 10000 2022-04-01 13:43:29,902+0530 http-nio-48204-exec-4 WARN - [c.a.j.w.action.util.Error404] Detected anonymous access to page <http://localhost:48204/j8204/secure/attachment> redirecting to login page 2022-04-01 13:43:29,952+0530 http-nio-48204-exec-2 ERROR anonymous 823x1453x1 1xnnba0 127.0.0.1 /secure/attachment/10001/WhatsApp+Image+2022-03-29+at+9.17.37+PM.jpeg [c.a.j.w.servlet.viewfile.AbstractViewFileServlet] Error finding /10001/WhatsApp+Image+2022-03-29+at+9.17.37+PM.jpeg : 10001
Workaround
Currently, one can update the database values to the correct ids of the images. However, this seems vague while there are more images.
The article below does not help in such scenarios. Setting the "thumbnailable" to NULL will again be set to 0 when the issue is viewed in the Jira UI.