Browsing artifacts shows JSON 403 error, but I could download archive
This is discovered at https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8084#note_116586313
I am free to browse the artifacts: https://gitlab.com/gitlab-org/gitlab-qa/-/jobs/119402280/artifacts/browse
And I could also download the archive. But if I click on any file, e.g. gitlab-qa-run-2018-11-12-15-40-02-c2fdb4ba/gitlab-secondary/logs/gitlab-rails/production.log, it'll just show me {"message":"403 Forbidden"}
.
I noticed there's a redirect. Maybe that's the reason?
Original link:
It redirects to:
I think this is probably a gitlab-ce~3630472 but not sure when it's introduced.
@dosuken123 Do you have any idea? Maybe it has something to do with object storage?
Workaround
Copy the original URL and replace file
with raw
. That will download the file instead of redirecting and returning 403.
For example, the original URL above could be changed to https://gitlab.com/gitlab-org/gitlab-qa/-/jobs/119402280/artifacts/raw/gitlab-qa-run-2018-11-12-15-40-02-c2fdb4ba/gitlab-secondary/logs/gitlab-rails/production.log (this link won't work because the artifacts have expired, but it should work for existing artifacts)