Opening the members page of a project gives server error (500)

Summary

When you try to open a members page of a prject with access rights more than Developer gives a server error

started after upgrading to gitlab-ee 8.15.2

Update

It definitely has to do with LDAP group coupling

Steps to reproduce (updated)

Server Error

  • Add an LDAP group to a project with userrole Admin
  • Navigate as that user to the project
  • Go to settings -> Members
  • Recieve 500

Expected behaviour

  • Do one of the following
    • Add an LDAP group to a project with userrole less than Admin
    • Add a user to the project (no LDAP group) with any role
  • Navigate as that user to the project
  • Go to settings -> Members
  • See the page

Extra information

  1. The projects have LDAP users groups coupled
  2. The gitlab API works for all userroles

Expected behavior

See the members page

Actual behavior

Server error (500)

Relevant logs and/or screenshots

/var/log/gitlab/gitlab-rails/production.log

As Master

Started GET "/mygroup/myproject/project_members" for 2001:828:13c8:10c:2434:d5f0:d609:995f at 2017-01-06 10:56:03 +0
Processing by Projects::ProjectMembersController#index as HTML
  Parameters: {"namespace_id"=>"mygroup", "project_id"=>"myproject"}
Completed 500 Internal Server Error in 105ms (ActiveRecord: 11.3ms)

ActionView::Template::Error (No route matches {:action=>"override", :controller=>"groups/group_members", :group_id=>nievel: 3, type: "GroupMember", created_at: "2016-09-09 12:00:06", updated_at: "2016-10-28 09:00:13", created_by_id: nile: false>, :namespace_id=>"mygroup", :project_id=>"myproject"} missing required keys: [:group_id]):
    20:       .controls
    21:         %button.btn.btn-warning.btn-loading.js-ldap-override{ type: 'button',
    22:           'aria-label' => 'Change LDAP member permissions',
    23:           data: { el_id: dom_id(member), endpoint: override_group_group_member_path(group, member) } }
    24:           = icon('spinner spin')
    25:           Change permissions
    26:         %button.btn.btn-default.js-ldap-permissions{ type: 'button',
  app/views/shared/members/ee/_override_member_buttons.html.haml:23:in `_app_views_shared_members_ee__override_member_
  app/views/shared/members/_member.html.haml:110:in `_app_views_shared_members__member_html_haml___2651761274099867118
  app/views/projects/project_members/_team.html.haml:7:in `_app_views_projects_project_members__team_html_haml___14289
  app/views/projects/project_members/index.html.haml:33:in `_app_views_projects_project_members_index_html_haml__14474
  lib/gitlab/middleware/multipart.rb:93:in `call'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'
  lib/gitlab/middleware/readonly_geo.rb:29:in `call'


Started GET "/mygroup/myproject/project_members" for 2001:828:13c8:10c:2434:d5f0:d609:995f at 2017-01-06 10:56:03 +0
Processing by Projects::ProjectMembersController#index as HTML
  Parameters: {"namespace_id"=>"mygroup", "project_id"=>"myproject"}
Started GET "/mygroup" for 2001:828:13c8:10c:2434:d5f0:d609:995f at 2017-01-06 10:56:03 +0100
Processing by GroupsController#show as HTML
  Parameters: {"id"=>"mygroup"}
Read fragment views/groups/139-20170106090020600638000/projects/751-20170106085553858719000/groups/show/application_se
Read fragment views/groups/139-20170106090020600638000/projects/486-20170105101522119987000/groups/show/application_se
Read fragment views/groups/139-20170106090020600638000/projects/535-20170105120907187079000/groups/show/application_se
Read fragment views/groups/139-20170106090020600638000/projects/527-20170103082859755012000/groups/show/application_se
Completed 500 Internal Server Error in 125ms (ActiveRecord: 11.4ms)

As Developer

Started GET "/myothergroup/myotherproject/project_members" for 2001:828:13c8:10c:2434:d5f0:d609:995f at 2017-01-06 11:02:59 +0100
Processing by Projects::ProjectMembersController#index as HTML
  Parameters: {"namespace_id"=>"myothergroup", "project_id"=>"myotherproject"}
Completed 200 OK in 236ms (Views: 180.5ms | ActiveRecord: 22.9ms)

Output of checks

See logs

Results of GitLab application Check

Can I do this safely on a production environment?

Results of GitLab environment info

Can I do this safely on a production environment?

Possible fixes

Edited Jun 23, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading