Actions
Bug #12894
closedupdating cdn url results in ISE
Difficulty:
medium
Triaged:
Bugzilla link:
Pull request:
Description
Trying to update the cdn url on the subscription's manifest import page throws an ISE:
| NoMethodError: undefined method `each' for nil:NilClass | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/associations/collection_association.rb:356:in `replace' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/associations/collection_association.rb:41:in `writer' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/associations/builder/association.rb:118:in `users=' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/attribute_assignment.rb:45:in `public_send' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/attribute_assignment.rb:45:in `_assign_attribute' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:67:in `block in assign_attributes' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in `each' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/attribute_assignment.rb:61:in `assign_attributes' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/persistence.rb:64:in `block in update' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/activerecord-4.1.5/lib/active_record/transactions.rb:326:in `with_transaction_returning_status' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/protected_attributes-1.1.3/lib/active_record/mass_assignment_security/persistence.rb:63:in `update' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/foreman-tasks-0.7.8/app/models/foreman_tasks/concerns/action_triggering.rb:38:in `block in update_attributes' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/foreman-tasks-0.7.8/app/models/foreman_tasks/concerns/action_triggering.rb:110:in `dynflow_task_wrap' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/foreman-tasks-0.7.8/app/models/foreman_tasks/concerns/action_triggering.rb:38:in `update_attributes' | /home/vagrant/git/foreman/app/controllers/concerns/api/v2/taxonomies_controller.rb:70:in `update' | /home/vagrant/git/katello/app/controllers/katello/api/v2/organizations_controller.rb:68:in `update' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action' | /home/vagrant/.rvm/gems/ruby-2.2.0/gems/actionpack-4.1.
Actions