Bug #14847
closed
error creating job template: ActiveModel::ForbiddenAttributesError in JobTemplatesController#update ActiveModel::ForbiddenAttributesError
Added by Thomas McKay almost 9 years ago.
Updated over 6 years ago.
Description
Created a job template and then tried to edit it, adding to a location:
2016-04-27T07:23:06 [app] [F]
| ActiveModel::ForbiddenAttributesError (ActiveModel::ForbiddenAttributesError):
| app/controllers/templates_controller.rb:56:in `update'
| app/controllers/concerns/application_shared.rb:13:in `set_timezone'
| app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
| lib/middleware/catch_json_parse_errors.rb:9:in `call'
- Subject changed from unable to assign job template to location or organization: ActiveModel::ForbiddenAttributesError in JobTemplatesController#update ActiveModel::ForbiddenAttributesError to error creating job template: ActiveModel::ForbiddenAttributesError in JobTemplatesController#update ActiveModel::ForbiddenAttributesError
To reproduce:
1. Clone an existing template
2. Change name
3. Attempt to save
I thought it had to do w/ org/loc but unsure now.
- Status changed from New to Ready For Testing
- Assignee set to Stephen Benjamin
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/182 added
- Assignee deleted (
Stephen Benjamin)
No need to clone, it happens on creating any template at all.
- Assignee set to Stephen Benjamin
- Translation missing: en.field_release set to 156
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF