Creating an rdoc wiki page with a dot in the slug will return 500 when creating and viewing
Summary
Creating a new rdoc page with a .
in the slug such as test.rdoc
will return a 500 page when attempting to view or when creating
Steps to reproduce
- Create a new wiki page
- Name the slug it something like
test.test
- Submit
Example Project
https://gitlab.com/cpallares/public-test-project/wikis/test-rdoc.dot
What is the current bug behavior?
500 page
What is the expected correct behavior?
Should either be consistent with markdown behavior or slugs shouldn't be allowed to have dots in their slugs
Relevant logs and/or screenshots
https://sentry.gitlap.com/gitlab/gitlabcom/issues/86756/
NoMethodError: undefined method `formatted_data' for #<Gitlab::Git::WikiPage:0x00007fbb767a0790>
from app/models/wiki_page.rb:110:in `formatted_content'
from app/helpers/markup_helper.rb:116:in `render_wiki_content'
from app/views/projects/wikis/show.html.haml:29:in `_app_views_projects_wikis_show_html_haml___2180094396044687111_70221785175500'
from action_view/template.rb:145:in `block in render'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:333:in `instrument'
from action_view/template.rb:143:in `render'
https://sentry.gitlap.com/gitlab/gitlabcom/issues/87104/ https://sentry.gitlap.com/gitlab/gitlabcom/issues/87281/
Results of GitLab environment info
Reproduced on GitLab.com