500 on user remove from group
Summary
I'm trying to remove user from group on my self hosted gitlab ee instance and getting 500 error page.
Gitlab graphql API returns null
in the user list. (it's very painful for our CI/CD)
I can't remove this user via CLI.
What is the current bug behavior?
- I invited a user by email, user never accepted this invitation
- After a while I created an account for him in admin area. I used the same email for invitation.
- Now I'm trying to remove invited user (not that I have created in admin area) in group members page. Server shows me 500 error page after as a result of removal action.
What is the expected correct behavior?
After pressing remove button on invited user I expect to remove it from group and gitlab instance.
Relevant logs and/or screenshots
Started DELETE "/groups/X/-/group_members/29" for X.X.X.X at 2020-12-07 21:10:10 +0300
Processing by Groups::GroupMembersController#destroy as HTML
Parameters: {"authenticity_token"=>"[FILTERED]", "group_id"=>"X", "id"=>"29"}
Completed 500 Internal Server Error in 24ms (ActiveRecord: 3.1ms | Elasticsearch: 0.0ms | Allocations: 9024)
NoMethodError (undefined method `username' for nil:NilClass):