Actions
Bug #22146
closedImporting of report fails on strong params with Foreman 1.17
Difficulty:
Triaged:
No
Description
2018-01-03T17:29:40 8e0b87b8 [app] [W] Action failed
| ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.4/lib/action_controller/metal/strong_parameters.rb:265:in `to_h'
| /home/ares/Projekty/Zdrojaky/foreman/app/models/report.rb:56:in `metrics='
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activemodel-5.1.4/lib/active_model/attribute_assignment.rb:46:in `public_send'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activemodel-5.1.4/lib/active_model/attribute_assignment.rb:46:in `_assign_attribute'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activemodel-5.1.4/lib/active_model/attribute_assignment.rb:40:in `block in _assign_attributes'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activemodel-5.1.4/lib/active_model/attribute_assignment.rb:39:in `each'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activemodel-5.1.4/lib/active_model/attribute_assignment.rb:39:in `_assign_attributes'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/attribute_assignment.rb:26:in `_assign_attributes'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activemodel-5.1.4/lib/active_model/attribute_assignment.rb:33:in `assign_attributes'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/core.rb:337:in `initialize'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/inheritance.rb:66:in `new'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/inheritance.rb:66:in `new'
| /home/ares/Projekty/Zdrojaky/foreman/app/models/concerns/foreman/sti.rb:19:in `new'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/persistence.rb:50:in `create!'
| /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/arf_report.rb:109:in `block in create_arf'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
| /home/ares/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_openscap/pull/319 added
Updated by Marek Hulán almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_openscap|2b57b77596e1e5dd457282f24eb3e247fa9663d2.
Actions