Adding wiki attachment errors when a using relative url
Summary
Adding an attachment to a new wiki page errors when using a relative URL.
This was caught by two e2e tests:
Steps to reproduce
- Set up GDK with relative url.
- Click
Wiki
and create a new wiki page. - Add an attachment to the new page.
Example Project
What is the current bug behavior?
There is an Internal Server Error
and the attachment isn't added.
What is the expected correct behavior?
The attachment should be added with out error.
Relevant logs and/or screenshots
"message": "404 Wiki Page Not Found"
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Désirée Chevalier