Bug 1171181

Summary: Content View Errata by ID filter 'List/Remove' tab errors
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, cwelton, omaciel, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/8594
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:20:25 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 Justin Sherrill 2014-12-05 15:45:12 UTC
1.  create a content view
2.  add a repository with errata to it
3.  Create a errata by id 'include' filter
4.  go to 'Add' tab
5.  Select some errata and click add errata
6.  go to List/Remove page

Errors with traceback in ajax request:

ArgumentError: wrong number of arguments (2 for 1)
/home/vagrant/katello/app/controllers/katello/api/v2/errata_controller.rb:41:in `filter_by_content_view_filter'
/home/vagrant/katello/app/controllers/katello/concerns/api/v2/repository_db_content_controller.rb:54:in `index_relation'
/home/vagrant/katello/app/controllers/katello/concerns/api/v2/repository_db_content_controller.rb:26:in `index'
/home/vagrant/katello/app/controllers/katello/api/v2/errata_controller.rb:27:in `index'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.21/lib/abstract_controller/base.rb:167:in `process_action'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:560:in `block (3 levels) in _run__1919809952475137643__process_action__924257201874667573__callbacks'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_6497'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:326:in `around'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_around_3701'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_6497'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:482:in `block (2 levels) in _run__1919809952475137643__process_action__924257201874667573__callbacks'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_6496'
/home/vagrant/foreman/app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_6496'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:426:in `block in _run__1919

Comment 1 Justin Sherrill 2014-12-05 15:45:13 UTC
Created from redmine issue http://projects.theforeman.org/issues/8594

Comment 3 Bryan Kearney 2015-01-07 15:04:49 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8594 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|d5b20135f861287bce2a38144fed5c364f457033.

Comment 6 sthirugn@redhat.com 2015-05-01 17:01:14 UTC
Verified.

Version Tested: Satellite-6.1.0-RHEL-7-20150429.2

Verification steps:
1.  create a content view
2.  add a repository with errata to it
3.  Create a errata by id 'include' filter
4.  go to 'Add' tab
5.  Select some errata and click add errata
6.  go to List/Remove page - page displayed without errors (screenshot attached

Comment 8 Bryan Kearney 2015-08-11 13:20:43 UTC
This bug is slated to be released with Satellite 6.1.

Comment 9 errata-xmlrpc 2015-08-12 05:20:25 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/RHSA-2015:1592