Skip to content

Allow dot at the start of project name

Abdul Wadood requested to merge 15041-allow-dot-at-project-name-start into master

What does this MR do and why?

We want to create a .gitlab project which will hold readme for groups. See #15041 (comment 1242739861).

To do so we need to allow the . character at the start of the project name. It's a bit unlikely this would create some issues as we mostly rely on the project path instead of the project name for any operations we do. We had expanded the project name regex in the past, like allowing underscore 61a72bc2, adding emojis af941732, and allowing a broader set of emojis !22776 (diffs).

By this commit 17ea019f, it seems that we just copied the regex for the project path to the project name. But we don't have all the context on why we had not allowed . as the commit is very old.

Screenshots or screen recordings

With Error

image

Without error

image

How to set up and validate locally

Create a new project (http://localhost:3000/projects/new#blank_project) and the . character should be allowed at the beginning of the project name (not path).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #15041 (closed)

Merge request reports