Actions
Bug #16462
closedStrong params breaks category selection in job invocation form
Difficulty:
Triaged:
Description
I'm unable to select job category.
Steps to reproduce
1. go to new job invocation form
2. select some job category
3. nothing happens, you can find 500 as a result of ajax call and following trace in the log
| ActiveModel::ForbiddenAttributesError (ActiveModel::ForbiddenAttributesError): | /home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/triggering.rb:42:in `new_from_params' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/models/job_invocation_composer.rb:461:in `build_triggering' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/models/job_invocation_composer.rb:291:in `compose' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/models/job_invocation_composer.rb:265:in `initialize' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/models/job_invocation_composer.rb:276:in `new' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/models/job_invocation_composer.rb:276:in `from_ui_params' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/controllers/job_invocations_controller.rb:61:in `refresh' | app/controllers/concerns/application_shared.rb:14:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | lib/middleware/catch_json_parse_errors.rb:9:in `call' | lib/middleware/tagged_logging.rb:18:in `call'
Actions