Project

General

Profile

Actions

Defect #7320

closed

circular dependency >2 issues

Added by Pim van den Berg almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
2011-01-13
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I'm running Redmine r4674.

It is possible to create a circular dependency in related tickets using >2 tickets.

When there is a circular dependency with for example 3 issues (1 duplicates 2 duplicates 3 duplicates 1), adding a relation between a 4th issue and one of the first 3 results in a "500 Internal Server Error".

SystemStackError (stack level too deep):
  (eval):12:in `after_initialize_callback_chain'
  app/models/issue.rb:462:in `all_dependent_issues'
  app/models/issue.rb:461:in `all_dependent_issues'
  app/models/issue.rb:463:in `all_dependent_issues'
  app/models/issue.rb:461:in `all_dependent_issues'
  app/models/issue.rb:463:in `all_dependent_issues'
  app/models/issue.rb:461:in `all_dependent_issues'
  app/models/issue.rb:463:in `all_dependent_issues'
  ...
  app/models/issue.rb:461:in `all_dependent_issues'
  app/models/issue.rb:463:in `all_dependent_issues'
  app/models/issue.rb:461:in `all_dependent_issues'
  app/models/issue_relation.rb:50:in `validate'
  app/controllers/issue_relations_controller.rb:27:in `new'
  /usr/lib/ruby/1.8/mongrel/rails.rb:76:in `process'
  /usr/lib/ruby/1.8/mongrel/rails.rb:74:in `synchronize'
  /usr/lib/ruby/1.8/mongrel/rails.rb:74:in `process'
  /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
  /usr/lib/ruby/1.8/mongrel.rb:158:in `each'
  /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `run'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `new'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `run'
  /usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
  /usr/lib/ruby/1.8/mongrel.rb:268:in `new'
  /usr/lib/ruby/1.8/mongrel.rb:268:in `run'
  /usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run'
  /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each'
  /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run'
  /usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'

Rendering /path/to/redmine/public/500.html (500 Internal Server Error)
Actions

Also available in: Atom PDF