codeforcroatia / imamopravoznati

Provide a Freedom of Information request system for your jurisdiction
http://alaveteli.org
Other
3 stars 1 forks source link

Error 500: [ERROR] admin_holiday_imports#create (ActiveModel::ForbiddenAttributesError) "ActiveModel::ForbiddenAttributesError" #78

Closed schlos closed 4 years ago

schlos commented 4 years ago

Actual behavior

An ActiveModel::ForbiddenAttributesError occurred in admin_holiday_imports#create:

  ActiveModel::ForbiddenAttributesError
  app/models/holiday_import.rb:50:in `block in holidays_attributes='

-------------------------------
Request:
-------------------------------

  * URL        : http://imamopravoznati.org/admin/holiday_imports

-------------------------------
Backtrace:
-------------------------------

  app/models/holiday_import.rb:50:in `block in holidays_attributes='
  app/models/holiday_import.rb:50:in `holidays_attributes='
  app/models/holiday_import.rb:29:in `initialize'
  app/controllers/admin_holiday_imports_controller.rb:10:in `new'
  app/controllers/admin_holiday_imports_controller.rb:10:in `create'
  app/controllers/application_controller.rb:120:in `record_memory'
  lib/strip_empty_sessions.rb:13:in `call'

Error in browser:

This page isn’t working imamopravoznati.org is currently unable to handle this request. HTTP ERROR 500

Version

http://imamopravoznati.org/version.json

Steps to reproduce

  1. http://imamopravoznati.org/admin/holidays
  2. add Croatian holidays for 2020 - 2021

Expected behavior

Should add holidays without error.

schlos commented 4 years ago

Same as: https://github.com/mysociety/alaveteli/issues/4363 Fixed with: https://github.com/mysociety/alaveteli/pull/4416 Upstream patch: https://github.com/mysociety/alaveteli/pull/4417 (0.30.0.2)

schlos commented 4 years ago

Needs retesting after version upgrade

schlos commented 4 years ago

Not reproducible with Alaveteli v0.33.0.0. Closing.