Project name validation is missing when editing project names
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label. For the Community Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug For the Enterprise Edition issue tracker: - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug and verify the issue you're about to submit isn't a duplicate. ---> ## Summary Renaming a project repository with symbols such as ( ) { } [ ] / etc. and then trying to save fails. ### Steps to reproduce 1. Go into the project general settings. 2. Rename the project name to whatever using these symbols. 3. 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 user should receive feedback when using disallowed characters. Saving should be disabled when project name is not valid. ### Output of checks This bug happens on GitLab.com. ## Proposal - [ ] Implement the same naming validation check as used during project creation: ![Screenshot_2024-07-31_at_14.53.46](/uploads/280637c33ba6fe30c06f65393869d0a2/Screenshot_2024-07-31_at_14.53.46.png) ![Screenshot_2024-07-31_at_14.54.21](/uploads/ec51423932cba591b103795a083fb21b/Screenshot_2024-07-31_at_14.54.21.png) - [ ] Add support text to name field to describe allowed character set: ![Screenshot_2024-07-31_at_14.54.01](/uploads/344a5ae6a573c4f59d745a7e52d25d95/Screenshot_2024-07-31_at_14.54.01.png)
issue