Unhandled ExtractsRef::RefExtractor::InvalidPathError in Snippets::BlobsActions
Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/1850709
Backtrace
ExtractsRef::RefExtractor::InvalidPathError: ExtractsRef::RefExtractor::InvalidPathError (ExtractsRef::RefExtractor::InvalidPathError)
from lib/extracts_ref/ref_extractor.rb:61:in `extract!'
from app/controllers/concerns/snippets/blobs_actions.rb:23:in `blob'
Problem
BlobsActions class is missing a handler for ExtractsRef::RefExtractor::InvalidPathError
Solution
Handle an exception and return a 404 error when provided reference is incorrect.
Edited by 🤖 GitLab Bot 🤖