Bug 1311609

Summary: updating cdn url results in ISE
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: APIAssignee: Tom McKay <tomckay>
Status: CLOSED ERRATA QA Contact: Jitendra Yejare <jyejare>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, cduryee, ehelms, jyejare, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/12894
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 09:02:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom McKay 2016-02-24 15:18:52 UTC
Trying to update the cdn url on the subscription's manifest import page throws an ISE:

<pre>
 | 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.
</pre>

Comment 1 Tom McKay 2016-02-24 15:18:54 UTC
Created from redmine issue http://projects.theforeman.org/issues/12894

Comment 2 Tom McKay 2016-02-24 15:18:57 UTC
Upstream bug assigned to tomckay

Comment 4 Tom McKay 2016-02-29 15:29:50 UTC
*** Bug 1312401 has been marked as a duplicate of this bug. ***

Comment 5 Bryan Kearney 2016-02-29 17:07:36 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/12894 has been closed
-------------
Thomas McKay
Applied in changeset commit:katello|54f872d2a301549a7ada80dbe573689f3f59a35b.

Comment 6 Jitendra Yejare 2016-03-08 14:05:16 UTC
Verified this in latest Satellite 6.2 snap 2.1 and I dont see any errors in bg while updating CDN URL.

Moving this to verified.

Comment 9 errata-xmlrpc 2016-07-27 09:02:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1500