Project

General

Profile

Actions

Bug #6510

closed

400 Bad request: while installing a package via bulk actions and without selecting system name

Added by Brad Buckingham almost 10 years ago. Updated almost 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1109138
Description of problem:
I was trying to install package on bulk systems and forgot to select the systems. when I clicked on "install" button, UI raised a notification:

"No systems have been specified."

But got a long exception with 400 Bad request in production.log:

Processing by Katello::Api::V2::SystemsBulkActionsController#install_content as JSON
Parameters: {"included"=>{"ids"=>[], "resources"=>[], "search"=>nil}, "excluded"=>{"ids"=>[]}, "content_type"=>"package", "content"=>["zsh"], "organization_id"=>"1", "api_version"=>"v2", "systems_bulk_action"=>{"included"=>{"ids"=>[], "resources"=>[], "search"=>nil}, "excluded"=>{"ids"=>[]}, "content_type"=>"package", "content"=>["zsh"], "organization_id"=>"1"}}
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:179:in `find_editable_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_1808844839954401441__process_action__3644850479203537843__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_9991'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in `around'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in `_callback_around_2816'

Also, firebug raises NetworkError 400 Bad request

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

How reproducible:
always

Steps to Reproduce:
1. install package via Bulk Actions but without selecting any content-host
2.
3.

Actual results:
firebug raises NetworkError 400 Bad request
production.log also throws exception with 400 Bad request

Expected results:
user should just get this error:
"No systems have been specified."

firebug should not raise any error and no exception should be there in production.log

Additional info:

Actions #1

Updated by Brad Buckingham almost 10 years ago

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

Updated by Brad Buckingham almost 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF