Actions
Bug #24651
closedCannot remove packages from content host web UI
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Description
An error is raised such as this:
2018-08-17T13:21:24 [I|app|] Started PUT "/api/v2/hosts/3/packages/remove" for ::1 at 2018-08-17 13:21:24 +0000 2018-08-17T13:21:24 [I|app|e3f5e] Processing by Katello::Api::V2::HostPackagesController#remove as JSON 2018-08-17T13:21:24 [I|app|e3f5e] Parameters: {"id"=>3, "packages"=>[{"id"=>2790, "name"=>"walrus", "nvrea"=>"walrus-0.71-1.noarch", "nvra"=>"walrus-0.71-1.noarch", "selec ted"=>true}], "api_version"=>"v2", "host_id"=>"3", "host_package"=>{"id"=>3, "packages"=>[{"id"=>2790, "name"=>"walrus", "nvrea"=>"walrus-0.71-1.noarch", "nvra"=>"walrus-0.7 1-1.noarch", "selected"=>true}]}} 2018-08-17T13:21:24 [I|app|e3f5e] Current user set to admin (admin) 2018-08-17T13:21:24 [D|app|e3f5e] Current location set to none 2018-08-17T13:21:24 [D|app|e3f5e] Current organization set to Default Organization 2018-08-17T13:21:24 [E|app|e3f5e] Katello::HttpErrors::BadRequest: {"id"=>2790, "name"=>"walrus", "nvrea"=>"walrus-0.71-1.noarch", "nvra"=>"walrus-0.71-1.noarch", "selected" =>true} is not a valid package name
We should be sending an array of package names and not an array of hashes with misc. package data from the table
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7634 added
Updated by Jonathon Turel over 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|146bd13d0671af002eebb3ec6813df7767c07a51.
Actions