Hello there,
We restored a JIRA backup XML to a new server, and moved over the attachments. As far as we can tell, the path is the same as it was before, and we have checked the path in the configuration.
We can see files (with numeric names) in the file system, with file sizes that match the attachments. New attachments work fine - creating both a file, and opening. Older attachments appear in the JIRA ticket, as well as in the file system, but if you click on them from the JIRA ticket, there is an error. I am thinking that there is a linkage between the file name and the numeric ID that has been lost. Does anyone have any idea of what we'd need to do to fix this?
Updated:
It appears the IDs stored in the entities.xml for the attachments do not match what came in the zipped folders.
<FileAttachment id="18800" issue="15009" mimetype="image/png" filename="jira-capture-screenshot-20150126-173015-420.png" created="2015-01-26 17:31:58.0" filesize="152456" author="c_mdalto"/>
See how it says "18800". Well, the file in our system has a different numeric ID. If we change it to 18800 (the file), then the attachment works.
The mystery is how all the IDs changed. Presumably (AFAIK), they took the attachments and the export on the same day.