Group members can not access project features after disabling and re enabling Repository feature

Summary

All project features remain disabled after disabling and re enabling the Repository feature for members of groups added to a project. Reproducible on local CE install and gitlab.com.

Steps to reproduce

Group A: Visibility Level: Private Members: User1 Owner

Group B: Visibility Level: Private Members: User2 Guest

Create Project in GroupA Visibility: Private

Add GroupB with Max access level: Guest to the new project

Edit the Project: Repository: Disabled

Edit the Project: Repository: Enabled

Expected behavior

Repository and all other feature are accessible for User2

Actual behavior

Project remains empty for user User2 (Only Project and Activity Tabs visible, everything else results in 404). Issues are still visible on the overlying GroupA page but result in 404 when opend.

Output of checks

Results of GitLab application Check

Checking GitLab Shell ...

GitLab Shell version >= 3.6.6 ? ... OK (3.6.6)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
5/2 ... ok
6/3 ... ok
6/5 ... ok
6/6 ... ok
8/7 ... ok
6/11 ... ok
6/12 ... ok
6/14 ... ok
3/16 ... ok
6/18 ... ok
6/20 ... ok
8/22 ... ok
3/25 ... ok
6/26 ... ok
9/30 ... ok
8/31 ... ok
6/32 ... ok
6/33 ... ok
8/35 ... ok
8/36 ... ok
3/37 ... ok
13/38 ... ok
5/39 ... ok
3/41 ... ok
3/43 ... ok
12/45 ... ok
5/47 ... ok
5/48 ... ok
5/49 ... ok
6/50 ... ok
6/51 ... ok
6/52 ... ok
9/54 ... ok
3/56 ... ok
3/57 ... ok
9/58 ... ok
3/59 ... repository is empty
5/60 ... ok
9/61 ... ok
3/62 ... ok
6/63 ... ok
8/64 ... ok
9/65 ... repository is empty
9/66 ... ok
6/67 ... ok
9/68 ... ok
4/69 ... ok
6/70 ... ok
35/71 ... repository is empty
25/72 ... ok
25/73 ... ok
5/75 ... ok
5/76 ... ok
35/77 ... repository is empty
35/78 ... repository is empty
35/79 ... repository is empty
35/80 ... repository is empty
5/84 ... ok
3/85 ... repository is empty
35/87 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP users with access to your GitLab server (only showing the first 100 results)
Server: ldapmain
        DN: uid=[...],ou=user,dc=[...],dc=de      uid: [...]
		[...]


Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
5/2 ... yes
6/3 ... yes
6/5 ... yes
6/6 ... yes
8/7 ... yes
6/11 ... yes
6/12 ... yes
6/14 ... yes
3/16 ... yes
6/18 ... yes
6/20 ... yes
8/22 ... yes
3/25 ... yes
6/26 ... yes
9/30 ... yes
8/31 ... yes
6/32 ... yes
6/33 ... yes
8/35 ... yes
8/36 ... yes
3/37 ... yes
13/38 ... yes
5/39 ... yes
3/41 ... yes
3/43 ... yes
12/45 ... yes
5/47 ... yes
5/48 ... yes
5/49 ... yes
6/50 ... yes
6/51 ... yes
6/52 ... yes
9/54 ... yes
3/56 ... yes
3/57 ... yes
9/58 ... yes
3/59 ... yes
5/60 ... yes
9/61 ... yes
3/62 ... yes
6/63 ... yes
8/64 ... yes
9/65 ... yes
9/66 ... yes
6/67 ... yes
9/68 ... yes
4/69 ... yes
6/70 ... yes
35/71 ... yes
25/72 ... yes
25/73 ... yes
5/75 ... yes
5/76 ... yes
35/77 ... yes
35/78 ... yes
35/79 ... yes
35/80 ... yes
5/84 ... yes
3/85 ... yes
35/87 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 18

Checking GitLab ... Finished

Results of GitLab environment info

System information
System:
Current User:   git
Using RVM:      no
Ruby Version:   2.3.1p112
Gem Version:    2.6.6
Bundler Version:1.13.5
Rake Version:   10.5.0
Sidekiq Version:4.2.1

GitLab information
Version:        8.13.0
Revision:       053a0a2
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     postgresql
URL:            https://[...].de
HTTP Clone URL: https://[...]/some-group/some-project.git
SSH Clone URL:  git@[...].de:some-group/some-project.git
Using LDAP:     yes
Using Omniauth: no

GitLab Shell
Version:        3.6.6
Repository storage paths:
- default:      /var/opt/gitlab/git-data/repositories
Hooks:          /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git:            /opt/gitlab/embedded/bin/git
Edited Aug 14, 2020 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading