Wiki 500 error when displaying wiki page with image
Summary
A wiki page that links to an image inside the (/PROJECT/.wiki) repository can not be rendered any more. This happens on gitlab.com.
Steps to reproduce
The most simple way is to visit https://gitlab.com/Compositional/wiki-bug/wikis/home
When you add a link via the web editor and click preview, you get an error notification at the top of the page. Submitting without preview results in a 500 error page. Committing the change results in a 500 error when visiting the wiki page.
Example Project
https://gitlab.com/Compositional/wiki-bug/wikis/home
For the markdown, see
https://gitlab.com/Compositional/wiki-bug/wikis/home/edit
For the image (nothing special about it, also breaks for .png)
https://gitlab.com/Compositional/wiki-bug/wikis/git_access
What is the current bug behavior?
A 500 error
What is the expected correct behavior?
When viewing: show a rendered wiki page When saving from the editor: save the page
Output of checks
This bug happens on GitLab.com
Possible fixes
The page is viewable in Gollum 4.1.2.
$ nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/1fdca25ee8ca60e95d933e3ecce25e15fabc1999.tar.gz -p gollum --run 'gollum --version'
Gollum 4.1.2