Project

General

Profile

Actions

Bug #16462

closed

Strong params breaks category selection in job invocation form

Added by Marek Hulán over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 #1

Updated by Marek Hulán over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/204 added
Actions #2

Updated by Ivan Necas over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Marek Hulán over 7 years ago

  • translation missing: en.field_release deleted (179)

actually it will be in 1.1.1 which does not exist in redmine atm

Actions

Also available in: Atom PDF