Webhooks MR event payload "object_attributes/source/namespace" change since 12.1
Summary
Since version gitlab-ce 12.1, the source/namespace in merge request payload contains name instead username
What is the current bug behavior?
consider a user with
- Name: Jean-Michel Beuken
- Username: beuken
If I do a MR, in the payload,
up to version 12.0
"object_attributes/source/namespace" = "beuken"
since version 12.1
"object_attributes/source/namespace" = "Jean-Michel Beuken"
What is the expected correct behavior?
I don't know
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.21.0 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.1.3 Revision: 6ccbccc2010 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.7 URL: https://gitlab.abinit.org HTTP Clone URL: https://gitlab.abinit.org/some-group/some-project.git SSH Clone URL: git@gitlab.abinit.org:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 9.3.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
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... 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: ... 3/4 ... yes 5/29 ... yes 3/31 ... yes 5/32 ... yes 16/39 ... yes 7/41 ... yes 5/42 ... yes 6/43 ... yes 3/44 ... yes 17/45 ... yes 18/46 ... yes 19/47 ... yes 21/48 ... yes 22/49 ... yes 23/50 ... yes 25/52 ... yes 26/53 ... yes 27/54 ... yes 28/55 ... yes 29/56 ... yes 30/57 ... yes 31/58 ... yes 32/59 ... yes 33/60 ... yes 34/61 ... yes 35/62 ... yes 36/63 ... yes 37/64 ... yes 39/66 ... yes 40/67 ... yes 42/69 ... yes 43/70 ... yes 44/72 ... yes 45/73 ... yes 46/74 ... yes 47/75 ... yes 48/76 ... yes 49/77 ... yes 50/80 ... yes 51/81 ... yes 31/83 ... yes 53/86 ... yes 5/87 ... yes 50/88 ... yes 55/89 ... yes 56/90 ... yes 57/91 ... yes 58/92 ... yes 6/93 ... yes 26/94 ... yes 2/95 ... yes 59/96 ... yes 61/97 ... yes 5/98 ... yes 62/99 ... yes 60/100 ... yes 48/101 ... yes 63/102 ... yes 64/103 ... yes 50/104 ... yes 5/105 ... yes 3/107 ... yes 68/108 ... yes 69/109 ... yes 70/110 ... yes 71/111 ... yes 72/112 ... yes 18/113 ... yes 73/114 ... yes 74/117 ... yes 51/118 ... yes 51/119 ... yes 51/120 ... yes 75/121 ... yes 76/122 ... yes 77/123 ... yes 78/125 ... yes 79/126 ... yes 80/127 ... yes 81/128 ... yes 51/129 ... yes 45/130 ... yes 82/131 ... yes 41/132 ... yes 84/134 ... yes 85/135 ... yes 78/136 ... yes 45/137 ... yes 45/138 ... yes 51/139 ... yes 51/140 ... yes 86/142 ... yes 51/143 ... yes 3/144 ... yes 87/145 ... yes 88/146 ... yes 89/147 ... yes 90/148 ... yes 75/149 ... yes 67/150 ... yes 51/151 ... yes 91/152 ... yes 92/154 ... yes 93/155 ... yes 42/156 ... yes 94/157 ... yes 42/158 ... yes 95/159 ... yes 96/160 ... yes 97/161 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.21.0 ? ... yes (2.21.0) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1565096356 sudo mv /var/opt/gitlab/.ssh/id_rsa_gitlab ~/gitlab-check-backup-1565096356 sudo mv /var/opt/gitlab/.ssh/jmbeuken_rsa ~/gitlab-check-backup-1565096356 sudo mv /var/opt/gitlab/.ssh/jmbeuken_rsa.pub ~/gitlab-check-backup-1565096356 sudo mv /var/opt/gitlab/.ssh/abinit_rsa.pub ~/gitlab-check-backup-1565096356 sudo mv /var/opt/gitlab/.ssh/config ~/gitlab-check-backup-1565096356 sudo mv /var/opt/gitlab/.ssh/abinit_rsa ~/gitlab-check-backup-1565096356 For more information see: doc/ssh/README.md in section "SSH on the GitLab server" Please fix the error above and rerun the checks. Active users: ... 74
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)