Defect #6878

Copy Project: Using Browser Navigation Corrupts Projects

Added by Moritz Voss over 8 years ago. Updated about 8 years ago.

Status:NewStart date:2010-11-12
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Projects
Target version:-
Resolution: Affected version:

Description

Using the Browser "Back" Navigation button when copying projects (used Safari on a Mac) to create the same project (as a series of subprojects of one parent project!) multiple times (Browser asks to resubmit form data, clicking "yes" of course), the following happens:

  • Redmine says Name and Identifier are already taken.
  • Changing name and identifier lets the copy be saved.

Doing this respeatedly results in projects circularly containing each other, duplicate or ambiguous identifiers, etc.

Repro:
  • Create project.
  • Create subproject.
  • Copy subproject in Administration Menu, name it "test1"
  • Hit Back on browser.
  • Click "Send" on re-send form data
  • Change project name and identifier to "test2", click save.
  • Repeat several times.
Later:
  • try to manage or move around projects.
  • observe weird projects structure (see screenshots)

list_of_projects.png - Project list looks like this! (68.7 KB) Moritz Voss, 2010-11-12 14:02

broken_project_stress10.png - However, entering stress10 will look like this: (see top!) (74.4 KB) Moritz Voss, 2010-11-12 14:02

broken_delete_stress5.png - Deleting some (not all!) projects will tell you stress10 is one of their subprojects (18.9 KB) Moritz Voss, 2010-11-12 14:02

History

#1 Updated by Moritz Voss over 8 years ago

I first noticed this when one project seemed to exist twice, containing both itself and being contained by another project twice. (stress 3). Deleting one made the other disappear, but deleting their container made the first stress3 reappear.

Difficult do estimate what exactly broke there, and I can't reproduce it as of now.

#2 Updated by Luis Serrano Aranda about 8 years ago

I have the same error, In addition Redmine copied twice for the same project and also has gotten me existing projects that have nothing to do within the project

Also available in: Atom PDF