Add bulletproofing to the bug views.
Review Request #12751 — Created Dec. 7, 2022 and submitted
We're hitting some crashes on the demo server from bots accessing the
bug redirect view for a review request that does not have an associated
repository. This view made an assumption that the repository exists,
which is generally fine for normal usage but fails when crawlers try to
be clever.This change adds some bulletproofing to the bug-related views to
validate that the repository exists and return a 404 if it doesn't.
Ran unit tests.
Summary | ID |
---|---|
cc7ef5c0c7a39caa416903b79b4f6ab33b3b2f92 |
- Change Summary:
-
Add unit tests to validate new behavior.
- Commits:
-
Summary ID 48448ebfd4f0aa6da2818ef2d2d65bc10d95e261 765d4880c58dc4280528ca6ffdf97fcc8e4148d4
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.