Project

General

Profile

Actions

Defect #6143

closed

Subtask creation form submission race?

Added by Piet Delport over 13 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2010-08-16
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

I encountered what seems to be some form of database or form state corruption, while creating multiple subtasks for a task on our local Redmine instance (running SVN r3608).

Steps to reproduce:

  1. Create a parent task
  2. Open up more than one subtask creation form from the parent task's Subtask "add" link (that is, in separate browser windows / tabs)
  3. Fill in each subtask's Subject field, without submitting them
  4. Submit each form (window/tab) in succession, without strictly waiting for the previous submission to complete

The above shouldn't cause any trouble or corruption, because each form submission should be logically independent, but this doesn't seem to be the case, as can be seen in this example i created on demo.redmine.org:

(The subtask creation forms were submitted in the above order (1, 2, 3), but as can be seen from the issue numbers, Test child 3 happens to have been created before Test child 2.)

The exact symptoms of the corruption seems to vary; in the above example, it can be observed that although #28910 and #28909 both have "28907" in their parent field, they display each other as their respective parents in their parent trees: in other words, their parentage is displayed as #28907→#28909→#28910 and #28907→#28910→#28909, instead of #28907→#28910 and #28907→#28909.

Other symptoms i've observed:

  • In the local case, one child ended up displaying all the other children as a sequence of nested parents (despite all the children having their parent field set to the same root issue)
  • The parent issue sometimes displays only some of the children (despite all their parent fields being set), or none
  • Trying to update the affected issues result in server-side Internal errors, or in one case a "Parent task translation missing: en, activerecord, errors, models, issue, attributes, parent_issue_id, not_a_valid_parent" error

I could only solve this so far by deleting and recreating all the affected issues, without form submission overlap. (Deleting the children alone seems insufficient; subsequent recreation fails.)

(I don't know if this problem is specific to subtask creation, or affects all task creation; i'm not sure how to test the latter.)


Related issues

Is duplicate of Redmine - Defect #6579: Tree hierachy being currupted on multiple submissions of an issueClosedJean-Philippe Lang2010-10-05

Actions
Actions

Also available in: Atom PDF