Project

General

Profile

Actions

Bug #24651

closed

Cannot remove packages from content host web UI

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

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by Jonathon Turel over 6 years ago

  • Bugzilla link set to 1619370
Actions #3

Updated by Jonathon Turel over 6 years ago

  • Target version set to Katello 3.7.1
Actions #4

Updated by Andrew Kofink over 6 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by Jonathon Turel over 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF