页面 fork 仓库不会提示报错的详细信息

Summary

fork 仓库时,如果用户 namespace 下面已经存在了 forked 仓库,那么页面只会提示 error,并没有提示详细的报错。用户需要到后台去查找日志才能知道具体的原因。

Steps to reproduce

  1. fork 一个仓库
  2. 再次 fork 同一个仓库,使用相同的项目名称

Example Project

What is the current bug behavior?

不提示报错的具体内容

What is the expected correct behavior?

Relevant logs and/or screenshots

image

{"severity":"ERROR","time":"2023-04-17T04:37:28.884Z","correlation_id":"01GY6R1TG0Z4TRTE2XESMHTT5Z","message":"Unable to save project. Error: Project namespace name has already been taken, Name has already been taken, Path has already been taken"}

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

马翔 编辑于