Vote #72058
完了Redmine fails to delete a project with parent/child task
0%
説明
Redmine fails to delete a project with misleading error message
Steps to reproduce:
- Create a new project
- Create issue and remember it's number
- Create another issue with parent issue from step 2
- Go to admin page
- 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'destroy_descendants'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:444:in
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:426:in in_tenacious_transaction'destroy_descendants'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:443:in
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.
journals
this is found by Redmine Java API auto-tests
--------------------------------------------------------------------------------
Fixed in r9858.
--------------------------------------------------------------------------------
Merged in 1.4 and 2.0.
--------------------------------------------------------------------------------