Project

General

Profile

Bug #24651

Cannot remove packages from content host web UI

Added by Jonathon Turel over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Associated revisions

Revision 146bd13d (diff)
Added by Jonathon Turel over 3 years ago

Fixes #24651 - Cannot remove packages from content host UI

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7634 added

#2 Updated by Jonathon Turel over 3 years ago

  • Bugzilla link set to 1619370

#3 Updated by Jonathon Turel over 3 years ago

  • Target version set to Katello 3.7.1

#4 Updated by Andrew Kofink over 3 years ago

  • Triaged changed from No to Yes

#5 Updated by Jonathon Turel over 3 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF