tkusukawa / kusu

Automatically exported from code.google.com/p/kusu
0 stars 0 forks source link

Internal error 500 when update tickets on worktime tab #60

Open thekazak opened 5 years ago

thekazak commented 5 years ago

Hi,

Redmine 4.0.1.stable Ruby 2.5.3-p105 (2018-10-18) Rails 5.2.2 Work time plugin 0.4.0

When open WorkTime tab and press Update button on the bottom for updating tickets data, it shows Internal error 500, instead of update data for the tickets.

Here is a sample log extract for that error: Started POST "/work_time/index?day=28&month=1&prj=false&user=4&year=2019" for 192.168.X.X at 2019-01-28 14:50:41 +0200 Processing by WorkTimeController#index as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"MNlO3jMVXXBVJixt80grE3KWAMRDXoZKKQGHzIJD9OXXR2cPnxWT5JqPEP+Nr2qJ7KHapbe4LmvgSvmN0bdfNQ==", "year"=>"2019", "month"=>"1", "day"=>"28", "user"=>"4", "prj"=>"false", "time_entry"=>{"25345"=>{"hours"=>"4.00", "activity_id"=>"12", "status_id"=>"2", "comments"=>"9001584281: JYSK; EWA missing data"}, "25346"=>{"hours"=>"2.00", "activity_id"=>"12", "status_id"=>"2", "comments"=>"daily monitoring"}}, "time_entry_25345"=>{"custom_field_values"=>{"7"=>"PS-00001.61", "11"=>"109", "8"=>"PS-00001.61 - SAP SolMan Itelligence"}}, "time_entry_25346"=>{"custom_field_values"=>{"7"=>"PS-00004.34.03", "11"=>"", "8"=>"PS-00004.34.03 - System Landscape, e-catt testing"}}, "commit"=>"Update"} Current user: x.x@domain.com (id=4) Completed 500 Internal Server Error in 12ms (ActiveRecord: 4.7ms)

ActionController::UnfilteredParameters (unable to convert unpermitted parameters to hash):

plugins/redmine_work_time/app/controllers/work_time_controller.rb:798:in block in hour_update' plugins/redmine_work_time/app/controllers/work_time_controller.rb:794:inhour_update' plugins/redmine_work_time/app/controllers/work_time_controller.rb:19:in index' lib/redmine/sudo_mode.rb:63:insudo_mode'

Found similar issue with Rails 5.1 and gem, hope it could help: https://stackoverflow.com/questions/43551676/unable-to-convert-unpermitted-parameters-to-hash-ruby-on-rails-app-error

BR Dimitar