Project

General

Profile

Actions

Defect #3722

open

Nested projects can get in disorder

Added by Andreas Deininger over 15 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
-
Start date:
2009-08-08
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

How to reproduce (using redmine SVN revision 2835):

  • create project Toplevel A
  • create project Sublevel A as child of project Toplevel A
  • create project Subsublevel A as child of project Sublevel A
  • create project Toplevel B
  • copy project Sublevel A, name it Toplevel C. Leave the field Subproject of empty (that's also the default coming up)
  • delete project Sublevel A
  • now, delete project Toplevel A. You are prompted:
Toplevel A
Are you sure you want to delete this project and related data ?
Its subproject(s): Toplevel B, Toplevel C will be also deleted

This is definitely wrong, since Toplevel B was never a subproject of Toplevel A.

If I click OK project Toplevel B is not deleted, however, project Toplevel C now has a minus sign on its left, indicating that is has subprojects, though it has none.

Note:
My first encounter with that bug was when I wanted to delete all but one project from a set of deeply nested projects (~20 projects). I inadvertently deleted the project I wanted to keep. First I thought it was my fault, so I restored my data from a backup and tried again. Same effect, again the project was deleted. Then it became obvious to me that something must be wrong with the new functionality of nesting projects as deep as you want. I played around a bit and finally found the steps above that reproducibely lead to an inconsistent state of the nesting of the projects (as far as I can see).


Related issues

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

Actions
Actions

Also available in: Atom PDF