Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment URL has attachment IDs not on the File System

Amin Tazifor October 1, 2018

All the attachments to issues exists, but the attachments IDs in the attachment URL do not have a matching filename in the attachments directories

I have an issue SAMP-451 that has attachments to it. The attachment ID portion of the attachment URLs do not match attachment IDs in the attachment directory for that issue.

For example, the attachment URL is 

http://localhost/11544/ID%20Clearance%20Data%20Elements.docx

But the attachment directory for that issue does not have any files named 11544. Matter of fact, there is not file in the entire attachments directory named 11554. Instead I have something like:

/var/atlassian/application-data/jira/data/attachments/SAMP/1000/SAMP-451/1009

However, if I upload new attachments, the links work.

I don't know how this discrepancy/inconsistency happened . I have just been brought on to find a solution to the problem.

 

Is there any way to make JIRA use the correct attachment IDs? Or is there a way I can delete the attachments and re-upload? I have over 1000 issues.

Any help will be greatly appreciated.

 

 

1 answer

1 vote
Jan-Peter Rusch
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.
October 1, 2018

Hi Amin,

11544 is a filename of the attachment below the directory data structure of Jira eg.

/YOURJIRAHOME/data/attachments/YOURPROJECTKEY/10000/YOURISSUE-KEY/11544

This is the internal name Jira uses to store attachments. You will not be able to change this.

Best

JP

Amin Tazifor October 1, 2018

Hi JP, thanks for the response.

I understand that I am not able to change this structure. My problem here is that the attachment URL is http://localhost/11544/ID%20Clearance%20Data%20Elements.docx

but in my directory structure, I have 

YOURJIRAHOME/data/attachments/YOURPROJECTKEY/10000/YOURISSUE-KEY/968

So there is a mismatch between the ID in the attachment link and what actually exist on the file system. 

I need to find a way to match them

Jan-Peter Rusch
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.
October 1, 2018

Hi Amin,

I would open a support call with Atlassian in this case. Pretty sure something is really mixed up here.

Sorry

JP

Amin Tazifor October 1, 2018

Thank you JP

Suggest an answer

Log in or Sign up to answer