User is unable to transfer (personnal) project to a group with indirect ownership (through other group)
Summary
A user can't transfer a project to a group in which it has ownership through group
Steps to reproduce
Create :
-
GroupA
-
GroupB
-
Add User1 as owner in GroupB
-
Add GroupB as owner in GroupA
login as User1, make some personnal project and try to transfer it, GroupA do not appear in list (groupB does)
Reproduced on on-prem free EE setup, latest version, as well as on gitlab.com
Example Project
GroupA : https://gitlab.com/gitlabbug-projects GroupB : https://gitlab.com/gitlabbug-users User1 : https://gitlab.com/testgitlab35
What is the current bug behavior?
GroupA does not appear in transfer list
What is the expected correct behavior?
GroupA should appear in transfer list, as if User1 was direct owner of GroupB
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
System information
System: Ubuntu 18.04
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.6.6p146
Gem Version: 2.7.10
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 5.0.9
Git Version: 2.28.0
Sidekiq Version:5.2.9
Go Version: unknown
GitLab information
Version: 13.3.5-ee
Revision: f2cfe35c0b4
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 12.4
URL: https://xxx
HTTP Clone URL:https://xxx/some-group/some-project.git
SSH Clone URL: git@xxx:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: yes
Using Omniauth:yes
Omniauth Providers: saml
GitLab Shell
Version: 13.6.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Result of gitlab:check
attached : check.log