Bug #9850
closedprior env 'Library' is missing when creating a new life-cycle environment
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1203660
Description of problem:
when creating a new life-cycle environment, UI doesn't save the form and production.log filled with below error:
2015-03-19 07:22:20 [I] Processing by Katello::Api::V2::EnvironmentsController#create as JSON
2015-03-19 07:22:20 [I] Parameters: {"name"=>"dev", "label"=>"dev", "prior"=>"", "organization_id"=>"1", "api_version"=>"v2", "environment"=>{"name"=>"dev", "label"=>"dev", "prior"=>""}}
2015-03-19 07:22:20 [E] ActionController::ParameterMissing: key not found: prior
/opt/rh/ruby193/root/usr/share/gems/gems/strong_parameters-0.2.1/lib/action_controller/parameters.rb:55:in `require'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.24/app/controllers/katello/api/v2/environments_controller.rb:185:in `find_prior'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:521:in `block (4 levels) in run_2732788240006921860__process_action__1153126456876487165__callbacks'
Version-Release number of selected component (if applicable):
sat6.1 beta snap7 (Satellite-6.1.0-RHEL-7-20150317.0)
How reproducible:
always
Steps to Reproduce:
1. create new life-cycle env.
2.
3.
Actual results:
2015-03-19 07:22:20 [E] ActionController::ParameterMissing: key not found: prior
Expected results:
Additional info: