Attachments to comments on personal snippets do not work when object storage is enabled
Summary
With object storage enabled, attachments that are uploaded to comments on personal snippets are not uploaded properly, or are unavailable for download at the very least.
With object storage disabled, this works.
Steps to reproduce
Create a new personal snippet on GitLab.com
Add a comment to the snippet, including an attachment. Note that the attachment claims to upload successfully, but fails to download on submission (the URL gives a 404 error).
Locally, enable object storage first.
Example Project
What is the current bug behavior?
404 error on uploaded file
What is the expected correct behavior?
200 OK and content of uploaded file
Output of checks
This bug happens on GitLab.com - e.g. https://gitlab.com/gitlab-com/production/issues/387#note_92353853
Possible fixes
Unsure at this time
Edited by 🤖 GitLab Bot 🤖