Templates can't be loaded if group has a dot inside the name
Summary
A bug appears when a group or subgroup has a '.' (dot) inside its name. No templates can be loaded if e.g. a LICENCE is added through the webIDE.
Steps to reproduce
- Create a subgroup with a dot inside the name.
- Create a repository inside this group and add at least one file to enable the webIDE.
- Open the webIDE inside this project.
- Add a new file and choose LICENCE as an example.
- Now try to choose a template like Android from the dropdown.
- An error should be visible.
Example Project
What is the current bug behavior?
The dropdown is empty and a red error bar appears containing the text:
Error loading template types. Please try again
What is the expected correct behavior?
The dropdown should contain all the templates that are available for this type of file.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
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
--