Skip to content

Fix 500 error in BlobController#delete

Stan Hu requested to merge sh-fix-delete-blob-failure into master

If a validation or other error occurs in BlobController#delete, it previously tried to render the show view, but that would render a 500 because the view assumes certain instance variables to be present (e.g. @last_commit). Fix this by redirecting back to the blob in question.

Relates to #220168 (closed)

Edited by Stan Hu

Merge request reports

Loading