Project

General

Profile

Defect #1412

500 internal server error発生

Added by teruo abe over 3 years ago. Updated over 3 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
Target version:
Start date:
05/17/2016
Due date:
% Done:

100%

Estimated time:

Description

1日前から使用させていただいています。
インストール直後はに使えていたのですが、あるタイミングから突然
500エラーが発生するようになってしまい、WorkTime経由の工数入力、管理画面のプラグイン設定画面がともにできなくなってしまいました。
具体的には、プロジェクトの「工数」リンククリック時、および管理画面の「プラグイン」メニューでWorkTimePluginの「設定」リンクをクリックした時点で500エラー画面が出てきてしまいます。

ログを抜粋したものを添付します。

----------------------------
Processing by ProjectsController#settings as HTML
Parameters: {"id"=>"*******"}
Current user: * (id=7)
Rendered projects/_form.html.erb (19.6ms)
Rendered projects/_edit.html.erb (21.1ms)
Rendered projects/settings/_modules.html.erb (7.4ms)
Rendered projects/settings/_members.html.erb (32.2ms)
Rendered projects/settings/_versions.html.erb (3.6ms)
Rendered projects/settings/_issue_categories.html.erb (2.0ms)
Rendered projects/settings/_wiki.html.erb (1.6ms)
Rendered projects/settings/_repositories.html.erb (1.8ms)
Rendered projects/settings/_boards.html.erb (1.8ms)
Rendered projects/settings/_activities.html.erb (14.2ms)
Rendered plugins/redmine_work_time/app/views/settings/_work_time_project_settings.html.erb (1.5ms)
Rendered common/_tabs.html.erb (94.9ms)
Rendered projects/settings.html.erb within layouts/base (95.5ms)
Completed 500 Internal Server Error in 116ms (ActiveRecord: 8.5ms)

ActionView::Template::Error (no implicit conversion of Symbol into Integer):
1: <%
2: if Setting.plugin_redmine_work_time[:account_start_days] &&
3: Setting.plugin_redmine_work_time[:account_start_days][@project.id.to_s]
4: day = Setting.plugin_redmine_work_time[:account_start_days][@project.id.to_s]
5: else
plugins/redmine_work_time/app/views/settings/_work_time_project_settings.html.erb:2:in `[]'
plugins/redmine_work_time/app/views/settings/_work_time_project_settings.html.erb:2:in `_plugins_redmine_work_time_app_views_settings__work_time_project_settings_html_erb___3380772684252180802_70127373643860'
app/views/common/_tabs.html.erb:22:in `block in app_views_common_tabs_html_erb___1097984621120188256_70127569988400'
app/views/common/_tabs.html.erb:21:in `each'
app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb___1097984621120188256_70127569988400'
app/helpers/application_helper.rb:324:in `render_tabs'
app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb__811850956576166087_70127570037700'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Completed 500 Internal Server Error in 14ms (ActiveRecord: 2.4ms)

TypeError (no implicit conversion of Symbol into Integer):
plugins/redmine_work_time/app/controllers/work_time_controller.rb:447:in `[]'
plugins/redmine_work_time/app/controllers/work_time_controller.rb:447:in `prepare_values'
plugins/redmine_work_time/app/controllers/work_time_controller.rb:37:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Associated revisions

Revision 418:e5f311d08929 (diff)
Added by Tomohisa Kusukawa over 3 years ago

fixes #1412 internal server error on plugin setting

Revision bbf1f1cd (diff)
Added by tkusukawa over 3 years ago

fixes #1412 internal server error on plugin setting

Revision 419:27c6bc491a83 (diff)
Added by Tomohisa Kusukawa over 3 years ago

fixes #1412 internal server error on plugin setting

Revision aaf49442 (diff)
Added by tkusukawa over 3 years ago

fixes #1412 internal server error on plugin setting

History

#1

Updated by teruo abe over 3 years ago

追記です。
redmineはBitnami3.2.1です。

#2

Updated by Anonymous over 3 years ago

  • Status changed from 新規(New) to 解決(Resolved)
  • % Done changed from 0 to 100

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

#3

Updated by Tomohisa Kusukawa over 3 years ago

  • Assignee set to teruo abe
  • Target version changed from 0.3.2 to 0.3.3

ご連絡ありがとうございます。
設定値がうまく初期化されないケースがあるのかもしれません。

初期化されていなくても動作するように
commit:e5f311d08929 にて修正を行いましたので
https://bitbucket.org/tkusukawa/redmine_work_time/downloads
の 「Download repository」でダウンロードする等して
ご確認頂けると助かります。

#4

Updated by teruo abe over 3 years ago

すばやい対応ありがとうございます。
修正プログラム2本を当方の環境に反映し、正常動作を確認しました。

数日様子を見て問題なければクローズしたいと思います。

#5

Updated by Tomohisa Kusukawa over 3 years ago

Redmine2.3でInternal Errorになる事がわかりましたので、
commit:27c6bc491a83 にて再修正しました。

#6

Updated by Tomohisa Kusukawa over 3 years ago

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

0.3.3をリリースしました。

Also available in: Atom PDF