Fix 404 handling for invalid blob references in snippets

What does this MR do and why?

Contributes to #564937 (closed)

Problem

When invalid paths are passed to snippet blob actions, ExtractsRef::RefExtractor::InvalidPathError exceptions are raised instead of returning a proper 404 response to users.

Solution

Handle an exception and return a 404 error when provided reference is incorrect.

References

Unhandled `ExtractsRef::RefExtractor::InvalidPa... (#564937 - closed)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #564937 (closed)

Edited by Vasilii Iakliushin

Merge request reports

Loading