When I am trying to create a project whose name starts with an underscore character _, I get the following error message:
Project namespace path can only include non-accented letters, digits, '', '-' and '.'. It must not start with '-', end in '.', '.git', or '.atom'.
Path can only include non-accented letters, digits, '', '-' and '.'. It must not start with '-', end in '.', '.git', or '.atom'.
According to this error message, the project name _test should be valid.
Steps to reproduce
Create a new project with the name _test.
What is the expected correct behavior?
The error message should describe the actual validation performed on the project name.
Relevant logs and/or screenshots
Results of GitLab environment info
GitLab Community Edition v16.11.1
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
This issue was automatically tagged with the label groupfoundations by TanukiStan, a machine learning classification model, with a probability of 0.53.
If this label is incorrect, please tag this issue with the correct group label as well as automation:ml wrong to help TanukiStan learn from its mistakes.
Authors who do not have permission to update labels can use the @gitlab-bot label ~"group::<correct group name>" command, or leave the issue to be triaged by group leaders initially assigned by TanukiStan.
This message was generated automatically.
You're welcome to improve it.
To set expectations, GitLab product managers or team members can't make any promise if they will proceed with this.
However, we believe everyone can contribute,
and welcome you to work on this proposed change, feature or bug fix.
There is a bias for action,
so you don't need to wait. Try and spin up that merge request yourself.
If you need help doing so, we're always open to mentor you
to drive this change.
All bugux issues need to have a proper severity label set.
Please add a severity label, remove the automation:ux-missing-labels label, and then reply to this comment briefly explaining your reasoning for providing this severity.
If you are not the DRI for this area and would like help determining the best severity, please @ the appropriate person for assistance.
Christina Lohrchanged title from Incorrect error message when creating a procets whose starts with an underscore to Incorrect error message when creating a project that starts with an underscore
changed title from Incorrect error message when creating a procets whose starts with an underscore to Incorrect error message when creating a project that starts with an underscore
This issue is labeled regression, but doesn't specify which milestone introduced it. We assume it was introduced in the current version (17.9.0-pre) and have labeled it ~"regression:17.9":
If this version number is wrong, please correct it.
Keep the regression label. It helps us search for regressions across all versions.
This issue is labeled regression, but doesn't specify which milestone introduced it. We assume it was introduced in the current version (17.9.0-pre) and have labeled it regression:17.9:
If this version number is wrong, please correct it.
Keep the regression label. It helps us search for regressions across all versions.
@lohrc I spent some time digging through this and came up with issues #27483 and #349047 (closed).
From reading these I conclude the rgression is only about the error message and not about the constraint itself.
I believe simply rephrasing the message will suffice here.
@schurzi Thanks for picking this up, much appreciated! I'll assign this issue to you and feel free to reach out on the MR if you need help with the error message wording or other feedback.