Project

General

Profile

Actions

Bug #6515

closed

404 Bad request in production.log: On clicking "Perform" button when no package name was specified

Added by Brad Buckingham over 9 years ago. Updated over 5 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=1107604
Description of problem:
I was trying to install package on selected content-host. But found that the "Perform" button was active/enabled even no package name was specified in text box.

Also, If I click on "Perform" button without specifying package name, nothing happens on UI, but production.log filled up with a long execption:

Processing by Katello::Api::V2::SystemPackagesController#install as JSON
Parameters: {"uuid"=>"67a61af0-2cc9-48cf-96ad-68852b0d5875", "packages"=>[""], "api_version"=>"v2", "system_id"=>"67a61af0-2cc9-48cf-96ad-68852b0d5875", "system_package"=>{"uuid"=>"67a61af0-2cc9-48cf-96ad-68852b0d5875", "packages"=>[""]}}
Katello::HttpErrors::BadRequest: is not a valid package name
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/system_packages_controller.rb:92:in `block in validate_package_list_format'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/system_packages_controller.rb:90:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/v2/system_packages_controller.rb:90:in `validate_package_list_format'

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

How reproducible:
always

Steps to Reproduce:
1. go to content-host --> select registered system --> Packages --> select package actions --> Perform
2.
3.

Actual results:
Also, If I click on "Perform" button without specifying package name, nothing happens on UI, but production.log filled up with a long execption:

Expected results:
Perform button needs to be disabled, when no package/group name is defined

Additional info:

Actions #1

Updated by Brad Buckingham over 9 years ago

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

Updated by Brad Buckingham over 9 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