Bug #6515
closed404 Bad request in production.log: On clicking "Perform" button when no package name was specified
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:
Updated by Brad Buckingham over 10 years ago
- Assignee set to Brad Buckingham
- Target version set to 49
- Triaged changed from No to Yes
Updated by Brad Buckingham over 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset katello|dc49a24c4be4821221ed5a16f8124653da9375d6.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13