dot in project path changes to dashes after transfer

Summary

A customer has noticed (internal ticket) that dots (.) in URL of projects transferred with Direct transfer feature get changed to dashes (-) on the destination.

Steps to reproduce

  1. Create an instance and enable Direct Transfer feature. I tested with GitLab 16.8 as source instance.
  2. Create a project on the source instance in the following path: testing-group/microservices/php.ms-evenements (note the dot)
  3. Import project as direct import to GitLab.com
  4. Note the change in project URL path (testing-group/microservices/php.ms-evenements to testing-group/microservices/php-ms-evenements) (dot to a dash)

Example Project

What is the current bug behavior?

The project URL path should be the same on source and destination

What is the expected correct behavior?

The project URL paths that contain dot (.) on source, change the path to contain dash - instead

Relevant logs and/or screenshots

Source:

image

Destination:

image

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

Edited by Kate Grechishkina