プロジェクト

全般

プロフィール

Defect #1336

完了

Internal error when a user is deleted in Redmine

Olivier Houdas さんがほぼ10年前に追加. ほぼ10年前に更新.

ステータス:
終了(Closed)
優先度:
通常(Normal)
対象バージョン:
開始日:
2014/06/27
期日:
進捗率:

100%

予定工数:

説明

Steps :
  1. Activate Worktime on a project
  2. Make sure user "X" is listed in the list of members, displayed in the worktime tab
  3. Delete that user in Redmine admin (not simply locked, but deleted)
  4. Display the Work time tab again on the project
    Result : Internal error
    Started GET "/redmine/work_time/show/geoconcept" for 192.168.9.13 at 2014-06-26 15:48:47 +0200
    Processing by WorkTimeController#show as HTML
      Parameters: {"id"=>"geoconcept"}
      Current user: admin (id=1)
    Completed 500 Internal Server Error in 2136.2ms
    
    NoMethodError (undefined method `active?' for nil:NilClass):
      plugins/redmine_work_time/app/controllers/work_time_controller.rb:638:in `block in member_add_del_check'
    
    

Fix suggestion:
Add a test on the user object in the loop (see patch attached)
This is not perfect (deleted users remain in the wt_members_order table), but at least it avoids the internal error.


ファイル

Tomohisa Kusukawa さんがほぼ10年前に更新

  • ステータス新規(New) から 担当(Assigned) に変更
  • 担当者Tomohisa Kusukawa にセット
  • 対象バージョン0.2.15 にセット

Thank you very much for this bug report.

Tomohisa Kusukawa さんがほぼ10年前に更新

  • ステータス担当(Assigned) から 解決(Resolved) に変更
  • 進捗率0 から 100 に変更

更新履歴 commit:e0ca1cf18c0b で適用されました。

Tomohisa Kusukawa さんがほぼ10年前に更新

  • ステータス解決(Resolved) から 終了(Closed) に変更

I released Ver.0.2.15.
http://www.r-labs.org/news/180

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