Project

General

Profile

Defect #783

Internal Server Error occurs when user is deleted on Redmine 1.2.0.

Added by Shinji Kawakami over 8 years ago. Updated over 8 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
Target version:
Start date:
06/20/2011
Due date:
% Done:

100%

Estimated time:

Description

Redmine 1.2.0 からユーザを削除出来るようになりましたが、User Profileプラグインを導入していると、削除時にInternal Server Errorが発生します。

発生時のログを添付しておきます。

Processing UsersController#destroy (for xxx.xxx.xxx.xxx at 2011-06-20 14:37:16) [DELETE]
  Parameters: {"action"=>"destroy", "_method"=>"delete", "authenticity_token"=>"L+nJK7YFucCwRXiHDEotvEiQTtJqnmzwvN7yQ9nqagk=", "id"=>"231", "controller"=>"users"}

ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'user_profiles.user_preference_id' in 'where clause': SELECT * FROM `user_profiles` WHERE (`user_profiles`.user_preference_id = 201)  LIMIT 1):
  app/controllers/users_controller.rb:188:in `destroy'
  passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
  passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
  passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
  passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
  passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
  passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
  passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork'
  passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in `start'
  passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
  passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
  passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
  passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
  passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
  passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
  passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
  passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  passenger (3.0.7) helper-scripts/passenger-spawn-server:99

Rendering /opt/redmine-1.2.0/public/500.html (500 Internal Server Error)

Associated revisions

Revision 6:d132ee44e035 (diff)
Added by Haru Iida over 8 years ago

fixes #783 Internal Server Error occurs when user is deleted on Redmine 1.2.0.

History

#1

Updated by Haru Iida over 8 years ago

  • Status changed from 新規(New) to 担当(Assigned)
  • Assignee set to Haru Iida
  • Target version set to 0.0.3
#2

Updated by Haru Iida over 8 years ago

  • Status changed from 担当(Assigned) to 解決(Resolved)
  • % Done changed from 0 to 100

更新履歴 d132ee44e035 で適用されました。

#3

Updated by Haru Iida over 8 years ago

報告ありがとうございます。

多分直ったと思います。

#4

Updated by Shinji Kawakami over 8 years ago

早速の対応ありがとうございました。
User Profileプラグインを導入したまま、正常にユーザを削除できることを確認しました。

#5

Updated by Haru Iida over 8 years ago

  • Status changed from 解決(Resolved) to 終了(Closed)

確認ありがとうございました。

Also available in: Atom PDF