Project

General

Profile

Actions

Defect #11185

closed

Redmine fails to delete a project with parent/child task

Added by Maxim Karvonen over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Projects
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Redmine fails to delete a project with misleading error message

Steps to reproduce:
1. Create a new project
2. Create issue and remember it's number
3. Create another issue with parent issue from step 2
4. Go to admin page
5. Try to delete a project

What expected:
Project is deleted (as in redmine 1.4.3)

What happens:
Redmine shows a page with following content:
"Page not found
The page you were trying to access doesn't exist or has been removed.
Back"

Logs:

Started DELETE "/redmine/projects/parentchildtest" for * at Sun Jun 17 11:14:36 -0700 2012
Processing by ProjectsController#destroy as HTML
Parameters: {"authenticity_token"=>"*", "id"=>"parentchildtest"}
Rendered projects/destroy.html.erb within layouts/base (9.8ms)
Completed 200 OK in 84ms (Views: 62.7ms | ActiveRecord: 8.9ms)

Started DELETE "/redmine/projects/parentchildtest" for * at Sun Jun 17 11:14:39 -0700 2012
Processing by ProjectsController#destroy as HTML
Parameters: {"commit"=>"Delete", "authenticity_token"=>"*", "utf8"=>"✓", "id"=>"parentchildtest", "confirm"=>"1"}
Completed 500 Internal Server Error in 612ms

ActiveRecord::RecordNotFound (Couldn't find Issue with id=903):
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:485:in `reload_nested_set'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:444:in `destroy_descendants'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:426:in `in_tenacious_transaction'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:443:in `destroy_descendants'
app/controllers/projects_controller.rb:231:in `destroy'

IP and auth token removed from log

Environment:
bitnami redmine 2.0.2 installed on bitnami stack 2.3.14-2.

Actions

Also available in: Atom PDF