Validate that reference exists for atom format
What does this MR do and why?
- Contributes to #351520 (closed)
- Sentry error: https://sentry.gitlab.net/gitlab/gitlabcom/issues/3152528
Problem
We don't verify if provided ref exists if it has .atom
suffix
Solution
Return 404 page when ref is missing.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
- Open a similar link: http://127.0.0.1:3000/flightjs/Flight/-/commits/does_not_exist.atom
- You should see a 404 page instead of 500 error
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.