Project

General

Profile

Actions

Bug #23658

closed

Foreman Salt Plugin 10.0 upload-salt-reports error with Foreman 1.17

Added by Nathan Grennan over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I installed the Foreman Salt Plugin 10.0 with Foreman 1.17, but get the error below. I also tried 8.0.4 and 9.0.1, same error. I downgraded to Foreman 1.16 with Foreman Salt Plugin 9.0.1, and it works.

upload-salt-reports:
Unable to upload job - aborting report upload {
"error": {"message":"unable to convert unpermitted parameters to hash"}
}

I lost the backtrace on reinstall, it pointed to line 25 in the code below.

app/controllers/foreman_salt/api/v2/jobs_controller.rb:
Rails.logger.info("Processing job #{params[:job][:job_id]} from Salt.")
case params[:job][:function]
when 'state.highstate'
--> task = ForemanTasks.async_task(::Actions::ForemanSalt::ReportImport, params[:job], detected_proxy.try(:id))
render :json => { :task_id => task.id }
else
render :json => { :message => 'Unsupported function' }, :status => :unprocessable_entity


Related issues 1 (0 open1 closed)

Related to Salt - Bug #24133: Rails 5.1 error when submitting salt report: "unable to convert unpermitted parameters to hash (ActionController::UnfilteredParameters)"ClosedGreg Sutcliffe07/02/2018Actions
Actions

Also available in: Atom PDF