Wrong Error Message For Excessively Long Project Name
<!--- 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 When making a new project, if the name is too long, this error message comes up: ![erroneous_error_message](/uploads/bc87a64cc0df9c0d1f280423c3b9dd97/erroneous_error_message.PNG) Nowhere does it state the maximum name length. It only addresses valid characters. ### Steps to reproduce I don't know the exact character limit but `Awfully Long Name That Someone Probably Wouldn't Use For A Serious Project But Should Be Addressed Nonetheless` is guaranteed to reproduce this. ### What is the current *bug* behavior? An error message is displayed with these reasons: * Name can contain only letters, digits, emojis, '_', '.', dash, space. It must start with letter, digit, emoji or '_'. * Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom' ### What is the expected *correct* behavior? >#### The form contains the following errors: > * Name cannot exceed [limit] characters. ### Possible fixes Inject a different message on the page load. ```html <div class="alert alert-danger" id="error_explanation"> <h4>The form contains the following errors:</h4> <ul> <li>Name cannot exceed [limit] characters.</li> </ul> </div> ```
issue