Bug 1111135

Summary: 404 bad request under "content host --> Bulk actions --> errata" when no host was selected
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Katello Bug Bin <katello-bugs>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: bbuckingham
Version: 6.0.3Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-01 16:20:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
404 bad request in firebug
none
Logs from production.log none

Description Sachin Ghai 2014-06-19 10:35:00 UTC
Created attachment 910341 [details]
404 bad request in firebug

Description of problem:
On navigating  "content host --> Bulk actions --> errata" when no content-host is selected, UI throws 404 bad request in firebug and long exception in production.log


Processing by Katello::Api::V2::SystemsBulkActionsController#applicable_errata as JSON
  Parameters: {"included"=>{"ids"=>[], "resources"=>[], "search"=>nil}, "excluded"=>{"ids"=>[]}, "organization_id"=>"1", "page"=>1, "search"=>"", "api_version"=>"v2", "systems_bulk_action"=>{"included"=>{"ids"=>[], "resources"=>[], "search"=>nil}, "excluded"=>{"ids"=>[]}, "organization_id"=>"1", "page"=>1, "search"=>""}}
Katello::HttpErrors::BadRequest: No systems have been specified.
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb:205:in `find_systems'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb:176:in `find_readable_systems'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:553:in `block (3 levels) in _run__3127528247141783304__process_action__3288835567691305841__callbacks'


Version-Release number of selected component (if applicable):
sat6 beta snap10 (Satellite-6.0.3-RHEL-6-20140618.0)


How reproducible:
always

Steps to Reproduce:
1. "content host --> Bulk actions --> errata" 
2.
3.

Actual results:
Processing by Katello::Api::V2::SystemsBulkActionsController#applicable_errata as JSON
  Parameters: {"included"=>{"ids"=>[], "resources"=>[], "search"=>nil}, "excluded"=>{"ids"=>[]}, "organization_id"=>"1", "page"=>1, "search"=>"", "api_version"=>"v2", "systems_bulk_action"=>{"included"=>{"ids"=>[], "resources"=>[], "search"=>nil}, "excluded"=>{"ids"=>[]}, "organization_id"=>"1", "page"=>1, "search"=>""}}
Katello::HttpErrors::BadRequest: No systems have been specified.

404 Bad request in firebug

Expected results:


Additional info:

Comment 2 Sachin Ghai 2014-06-19 10:37:32 UTC
Created attachment 910343 [details]
Logs from production.log

Comment 3 Brad Buckingham 2014-07-01 16:20:58 UTC

*** This bug has been marked as a duplicate of bug 1109085 ***