Project

General

Profile

Actions

Defect #17486

closed

Error when removing user from group

Added by Roland Lezuo over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Groups
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Trying to remove certain users from certain groups raises and redmine error.

i.e.: deleting "foo" from group "bar" (using Administration->Groups)
leads to the following trace in production.log:

Started DELETE "/redmine/groups/207/users/211" for 192.168.122.1 at 2014-07-16 18:36:28 +0200
Processing by GroupsController#remove_user as JS
Parameters: {"id"=>"207", "user_id"=>"211"}
Current user: xxx (id=608)
Completed 500 Internal Server Error in 21.8ms

NoMethodError (undefined method `id' for nil:NilClass):
app/models/member.rb:87:in `set_issue_category_nil'
app/models/member_role.rb:42:in `remove_member_if_empty'
app/models/group.rb:68:in `block in user_removed'
app/models/group.rb:67:in `user_removed'
app/controllers/groups_controller.rb:103:in `remove_user'

Some users were successfully deleted, but some others consistently raise this error.

Actions

Also available in: Atom PDF