Skip to content

Resolve "Snippets actions with binary data"

Vijay Hawoldar requested to merge 212662-edit-snippet-images into master

What does this MR do?

We do not currently support editing of binary data in Snippets so it will raise an error if someone attempts to view the form. This MR modifies the edit and update actions for Snippet controllers (Personal and Project) so that if someone attempts to edit/update a Snippet whose blob has binary data (i.e. an image) it will redirect them to the show action instead.

The show view is being modified separately (#212592 (closed)) to disable the edit button, so this MR is to cater for users who navigate directly to the edit or update paths.

Conformity

Availability and Testing

Closes #212662 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports