Vote #81050
未完了Can't delete project
ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
11
version_id:
0
issue_org_id:
33954
author_id:
115781
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
説明
Trying to delete project from administration/projects end with internal error:
Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error.
From log file:
Started DELETE "/redmine/projects/***" for 127.0.0.1 at 2020-09-03 11:02:52 +0200 Processing by ProjectsController#destroy as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"IHCKqOic5+PLq03iO1T5sDfR7maM8YWyq6fHeg9sLbtWIhfcPIHv9FM1vVzi9S0n0ktLx5PZqCYnZ1ZXLW2Lsg==", "confirm"=>"1", "commit"=>"Delete", "id"=>"***"} Current user: *** (id=164) Completed 500 Internal Server Error in 14099ms (ActiveRecord: 14003.6ms) NoMethodError (undefined method `-' for nil:NilClass): lib/redmine/nested_set/project_nested_set.rb:100:in `destroy_children' app/controllers/projects_controller.rb:264:in `destroy' lib/redmine/sudo_mode.rb:65:in `sudo_mode' Redirected to http://***/redmine/admin/projects Completed 302 Found in 47600ms (ActiveRecord: 47557.1ms)
Environment: Redmine version 4.1.1.stable Ruby version 2.5.8-p224 (2020-03-31) [x64-mingw32] Rails version 5.2.4.2 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM: Subversion 1.14.0 Git 2.26.1 Filesystem
journals
When I read the error message, it looks like *rgt - lft + 1* in "project_nested_set.rb":https://redmine.org/projects/redmine/repository/revisions/20033/entry/trunk/lib/redmine/nested_set/project_nested_set.rb#L107 has failed.
However, I could not reproduce the case where rgt and lft become nil.
--------------------------------------------------------------------------------
いいね!0