Download results in 404 error for drawio diagrams or images whose name starts with dot(.) on Confluence cloud page
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When downloading images/drawio diagrams whose name starts with a dot(.) on the Confluence cloud page results in a 404 - Not Found error
Environment
Confluence Cloud
Diagnosis
The attachments displayed on the page are accessible for viewing. However, the download links associated with these attachments have been identified as corrupted, leading to redirection to an empty destination.
Upon attempting to view an attachment and subsequently download it, users will encounter a 404 not found error.
Browser dev tools HTTP request:
1
2
3
4
5
6
7
8
9
10
11
12
Request URL: https://swicloud.atlassian.net/wiki/download/attachments/2942763292/.net%20remoting%20grpc%20pipline.drawio.png?version=2&modificationDate=1682408626690&cacheVersion=1&api=v2&download=true
Request Method: GET
Status Code: 404 Not Found
Remote Address: 104.192.137.19:443
Referrer Policy: origin
Error:
{ "error":
{ "code": "NotFoundError",
"title": "The file with the given id does not exist",
"href": "https://api.media.atlassian.com#NotFoundError"
}
}
Cause
it looks like Atlassian-proxy is blocking URLs like this: https://<site URL>/wiki/download/attachments/<attachments id>/.new%20full%20diagram%20one.drawio.png?api=v2
Solution
To quickly fix the issue, we can execute the below steps for each affected attachment:
On the attachment list screen, click `Properties` on the very right side
Remove the `.` from the beginning of the filename and hit save
The issue should be fixed.
Was this helpful?