Wiki page with a dot inside title/slug leads to 404 in the API
Summary
Creating a wiki page with a dot inside leads to a 404 when accesing it via API.
Steps to reproduce
- Create a wiki page named "1.0" (for example)
- Check the "wikis" API endpoint for that page. You should find the slug 1.0 there.
- Access the "1.0" wiki page via API ("/wikis/:slug" endpoint)
- -> 404
What is the current bug behavior?
An 404 with the following payload is returned when accessing a wiki page with a dot inside.
{"error":"404 Not Found"}
The error even looks different to the normal 404 page:
{"message":"404 Wiki Page Not Found"}
What is the expected correct behavior?
The wiki page is returned
Output of checks
This bug happens on GitLab.com as well as on self-hosted variants. (in our case 10.6.0)
Edited by Timo Litzius