Project names can't be renamed with certain symbols (i.e. brackets, slashes, etc.)
Summary
Renaming a project repository with symbols such as ( ) { } [ ] / etc. and then trying to save fails.
Steps to reproduce
- Go into the project general settings.
- Rename the project name to whatever using these symbols.
- Click "Save Changes".
What is the current bug behavior?
The page will not update with "Project 'project name' was successfully updated." Instead, it will just sit there until you reload the page, and revert to whatever settings you had before attempting to save.
What is the expected correct behavior?
The project should save regardless of the symbols used in the project name.
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
(If you can, link to the line of code that might be responsible for the problem)