プロジェクト

全般

プロフィール

Vote #72058

完了

Redmine fails to delete a project with parent/child task

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
52
issue_org_id:
11185
author_id:
57929
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
50
ステータス-->[Closed]

説明

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.


journals

this is found by Redmine Java API auto-tests
--------------------------------------------------------------------------------
Fixed in r9858.
--------------------------------------------------------------------------------
Merged in 1.4 and 2.0.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリProjects_11 にセット
  • 対象バージョン2.0.3_52 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0