Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #22168 - Fix ActiveModel::ForbiddenAttributesError #299

Merged
merged 1 commit into from Jan 8, 2018

Conversation

adamruzicka
Copy link
Contributor

Due to a change in Foreman core if we call triggering_params in REX, we receive
a Hash instead of ActiveController::Params. Merging a Hash into unpermitted
Params leads to the merged Hash not being #permitted? and causing
ActiveModel::ForbiddenAttributesError when trying to mass-assign the
triggering_params when creating a new job.

Related to theforeman/foreman commit 1ccf4df

@theforeman-bot
Copy link
Member

There were the following issues with the commit message:

  • commit message for 64b3281 is not wrapped at 72nd column

If you don't have a ticket number, please create an issue in Redmine.

More guidelines are available in Coding Standards or on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

Due to a change in Foreman core if we call triggering_params in REX, we
receive a Hash instead of ActiveController::Params. Merging a Hash into
unpermitted Params leads to the merged Hash not being #permitted? and
causing ActiveModel::ForbiddenAttributesError when trying to mass-assign
the triggering_params when creating a new job.

Related to theforeman/foreman commit 1ccf4df
@iNecas
Copy link
Member

iNecas commented Jan 8, 2018

This fixes the issue for me. I'm merging regardless of the CI right now, as there are other things that need to be fixed in tests in #297, but this has influence on usability of the rex itself, therfore pulling it in

@iNecas iNecas merged commit 88d43cf into theforeman:master Jan 8, 2018
@adamruzicka adamruzicka deleted the strong-params branch January 8, 2018 17:12
MariaAga pushed a commit to MariaAga/foreman_remote_execution that referenced this pull request Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants