Poor error handling when user is signing up and selects an existing group name
Summary
There is some slow and buggy error validating during the registration process when creating a group.
Steps to reproduce
- Register for a new account
- On group screen, use a generic name like "Test"
- Note error at top of screen "Group URL has already been taken"
- Try another name that is still generic. In my case I used "jackitest"
- Note the text below the field that checks for the Group name, responds slowly
- Note the 2nd error message that comes up that says "Error while validating group URL"
Loom video - https://www.loom.com/share/e64a716b46714c229484e7941df47814
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
Output of checks
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
We added logic so if a group URL was already taken we'd add a numerical value to the end of the URL so you could still have your group name and a unique URL.
Edited by Alper Akgun