Project

General

Profile

Bug #6511

400 Bad request on clicking content-host --> Bulk Actions --> Errata

Added by Brad Buckingham over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1109085
Description of problem:
UI is throwing 400 Bad request in production.log on accessing "Content-Host" --> "Bulk Actions" --> Errata

Version-Release number of selected component (if applicable):
sat6 beta snap9 compose2

How reproducible:
always

Steps to Reproduce:
1. register 2-3 content host
2. go to "bulk actions"
3. select Errata tab

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.
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb:204: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:175:in `find_readable_systems'

Expected results:

Additional info:

Associated revisions

Revision 2825746d (diff)
Added by Brad Buckingham over 6 years ago

fixes #6511 / BZ 1109085 - content host bulk errata fixes

This commit addresses a couple of small UI issues with the
content host bulk errata action. The issues were:

1. If no content hosts are selected, do not retrieve applicable
errata from the server. The API requires the user to provide
at least 1 content host; therefore, no need to send the request
with 0.
2. If no content hosts are selected, disable the refresh and
install actions.

Revision dff892aa
Added by Brad Buckingham over 6 years ago

Merge pull request #4396 from bbuckingham/issue-6511

fixes #6511 / BZ 1109085 - content host bulk errata fixes

History

#1 Updated by Brad Buckingham over 6 years ago

  • Assignee set to Brad Buckingham
  • Target version set to 49
  • Triaged changed from No to Yes

#2 Updated by Brad Buckingham over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#3 Updated by Eric Helms about 6 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF