Project

General

Profile

Bug #2057

Loops in group-structure make groups unusable

Added by niklas over 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
Start date:
03/26/2010
Due date:
% Done:

0%

QA Check:
Feature Branch:

Description

The Situation that caused this was the following:
  • Network A is member of Network B
  • Network B is member of Network A

From that point on any group operation (creating committees, deleting groups, joining other networks, ...) will fail with "stack level to deep". In some Situations the desired actions are performed in others not. When deleting a group, the e-mail notification about group deletion was sent out, but the group / committee was never deleted.

Old description

(was: destroying a committee fails with "stack level too deep")

trace is

app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/network.rb:46:in `org_structure_changed'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in `method_missing'
app/models/network.rb:45:in `org_structure_changed'
app/models/group_extension/groups.rb:120:in `remove_committee!'
app/models/committee.rb:54:in `remove_from_parent'
app/models/group.rb:242:in `destroy'
app/models/group.rb:229:in `destroy_by'
app/controllers/groups_controller.rb:91:in `destroy'

History

#1 Updated by niklas over 7 years ago

  • Target version set to z. Backlog B

this doesn't happen for all committees, just for some. I was unable to tell the difference as I have no access to that instance. will post more once I know more.

#2 Updated by niklas over 7 years ago

  • Subject changed from destroying a committee fails with "stack level too deep" to Loops in group-structure make groups unusable

#3 Updated by niklas over 7 years ago

  • Priority changed from Normal to High

to solve this we need to find a way to detect loops in org-structure and stop org_structure_changed.

#4 Updated by mcnair over 7 years ago

  • Target version changed from z. Backlog B to z. Backlog A

#5 Updated by mcnair over 6 years ago

  • Target version changed from z. Backlog A to z. Backlog B

Also available in: Atom PDF