Unable to browse artifacts persisted from jobs
When you save job artifacts with the artifacts:
spec, the Keep/Download/Browse button is available in the right nav, and you can navigate down through the persisted folder.
However, while browsing these artifacts, if you click on a text file to view in the browser, you get a 404 in a new page. Anything that is viewable in the browser seems to redirect to another page which gives a 404. An example is an xml file. Other types of artifacts are only available to download but not view.
You are able to view the ones you download but not on GitLab.com and have these have never been viewable.
You can browse the artifact hierarchy of the persistent artifacts from the job. But when you try to view one in the GitLab UI, you'll receive a 404 page. This has been an issue ever since using GitLab, but it’s becoming more important now because customers are starting to ask about why they can’t view their artifacts.
It doesn't seem to be a difference based on the type of asset that’s being viewed. Anytime you want to view anything, whether it’s a text, html code or whatever, It can’t be viewed from within the domain.
This doesn't seem to be a network issue.
Questions:
- Where is GitLab storing these files temporarily? Do you need to whitelist this IP and if so, is that IP is available to use or is it another issue?
- Is there a different URL or endpoint that is reached when you download?
- If you view a file, is it moving it from some persistent storage to Google storage? Could that be why you are unable to view them?
Proposal
For certain file types to automatically try to route to a GitLab Pages domain. This should just be removed, and all files should be treated without routing to Pages