Project

General

Profile

Actions

Defect #6579

closed

Tree hierachy being currupted on multiple submissions of an issue

Added by Bruno Medeiros over 13 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
2010-10-05
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Frequently some user can accidentally press the 'Create' button twice (or more times) when creating a new subtask. In this case, not only the issue will be created a lot of times, but the issue tree will be corrupted.

I guess the insertion is being done without transaction isolation, and the lft and rgt fields are being calculated in the wrong conditions.

Although the bug reproduction depends on certain conditions, it's easy to reproduce it:
1. Press 'Add' to add some subtask to a existing issue
2. Fill some data in the new subtask
3. Press the 'Create' button a lot of times quickly, without wait the submit's end

After that, there will be some issues as grandson issues (not children issues as expected), but the parent task will be the right one.

I created a example of this problem on the redmine demo, at http://demo.redmine.org/issues/33583
All subtasks 'dd' in this example should be child of parent, but it's not this way.

I'm marking this as High priority because it corrupts the database without an easy fix.


Related issues

Related to Redmine - Defect #7666: Deleting multiple subtasks brokes nested set hierarchyClosed2011-02-20

Actions
Related to Redmine - Defect #8537: Error in copying projectsClosed2011-06-06

Actions
Related to Redmine - Defect #6309: missing "not_a_valid_parent" from all the locale files?Closed2010-09-06

Actions
Related to Redmine - Defect #14335: Issue.rebuild! "lft" and "rgt" are 1 and 2Closed

Actions
Related to Redmine - Feature #18860: Replace awesome_nested_set gem with a custom implementation of nested setsClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #15581: Another broken display of subtasks on parent issuesClosed

Actions
Related to Redmine - Defect #19040: Potential DB deadlocks on concurrent issue creationClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #8143: Problem to update subtaskClosed2011-04-13

Actions
Related to Redmine - Defect #19344: MySQL 5.6: IssueNestedSetConcurrencyTest#test_concurrency : always failsClosed

Actions
Has duplicate Redmine - Defect #11772: Multiple parent task - maybe bug?Closed

Actions
Has duplicate Redmine - Defect #6143: Subtask creation form submission race?Closed2010-08-16

Actions
Has duplicate Redmine - Defect #17430: Broken Subtask TreeClosed

Actions
Has duplicate Redmine - Defect #11678: MySQL locks and Redmine collapsingClosed

Actions
Actions

Also available in: Atom PDF