Renaming repository fails if the validation has failed
Summary
Whilst working at https://gitlab.com/gitlab-org/gitlab-ce/issues/43201 I found out the following problem inside Project advanced settings > Rename repository section.
If you use not allowed chars when renaming a repo (e.g. Main Repository (2017/bis TYPO3 6.2)
) and you submit the form it's not possible anymore to interact with the form: the 'Expand' button aren't working anymore.
The same concept applies when you insert and invalid path.
Steps to reproduce
- Go to project settings
- Expand the Advanced settings section
- Within that section change existing project name to a non valid string like
Main Repository (2017/bis TYPO3 6.2)
- You should see an error message and you shouldn't be allowed to interact with the page anymore.
What is the current bug behavior?
You could not interact anymore with the page
What is the expected correct behavior?
You should be able to interact with the page and use the 'Expand' buttons
Screenshot
I could reproduce it on gitlab.com