Renaming an image via Web IDE corrupts it
Summary
Renaming an image via Web IDE makes an image unavailable
Steps to reproduce
- Add an image to any branch of existing repository
- Create a branch based on this branch.
- On a new branch, open Web IDE and rename the image. Stage and commit.
- Create a merge request against an old branch.
Your change will be displayed as two changed: old image is deleted and its preview looks good; new image is added and it doesn't have a preview, only a placeholder icon (see screenshot)
If you inspect an image, copypaste its URL and try to open it, you will have a file downloaded but it's not possible to open it as an image.
Also, if you clone this repo locally, you still will be unable to open renamed image.
What is the current bug behavior?
Image is not displayed and you can't open it locally.
What is the expected correct behavior?
Image diff should show an actual image and image should be available by its URL