Error 500 loading Wiki when a subdirectory contains a trailing space
- ZD: https://gitlab.zendesk.com/agent/tickets/71455
- Sentry: https://sentry.gitlap.com/gitlab/gitlabcom/issues/25108/
It looks like if you have a Wiki page in the following form:
group /
group / text.md
For most Wiki pages, GitLab substitutes a space for -
in the slug. However, when there are subdirectories involved, the space is left untouched. This causes an issue, quite possibly because the id
constraints in the route prevent this from being a valid route.
Removing the constraint fixes the problem.