Snippets image upload wrong path
IMPORTANT THIS IS THE EXACTE BUG DESCRIBED AND FIXED HERE !24550 (merged), but I am getting the same error.
GitLab environment info
Self-hosted Gitlab on kubernetes using rancher
- Gitlab Version : 11.10.4
- Rancher Version : 2.2.2
- Helm Chart Version : 1.8.4
- Helm Version : 2.13.1
Nothing is external on the deployed Gitlab beside Nginx
Summary
Uploading an image by attaching it or Copy/Paste to a markdown snippets results in a broken image. The Path added to the snippet is missing a part
as shown in the image it's setting this path /personal_snippet/1/d87af75ac7a387b9314ab99daa323e55/image.png
after the upload but it should be like this /uploads/-/system/personal_snippet/1/d25b6a3ee8c07278dd915efe624fffd0/image.png
the /uploads/-/system/
is missing
Steps to reproduce
- Composing the Snippet
- Upload a picture
- Wrong path to the image
What is the current bug behavior?
Wrong path to the image, there is a missing part of the path /uploads/-/system/
example /personal_snippet/1/d87af75ac7a387b9314ab99daa323e55/image.png
What is the expected correct behavior?
Set the correct path to the image example /uploads/-/system/personal_snippet/1/d25b6a3ee8c07278dd915efe624fffd0/image.png
Relevant logs and/or screenshots
/label ~bug