Project

General

Profile

Bug #20138

hammer host package list throws undefined method 'order' for Array

Added by Eric Helms about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

2017-06-28 15:24:46 f3860a1c [app] [E] NoMethodError: undefined method `order' for #<Array:0x007f4e3cef5420>
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0/app/controllers/katello/api/v2/api_controller.rb:74:in `scoped_search'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0/app/controllers/katello/api/v2/host_packages_controller.rb:24:in `index'
 | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
 | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in `process_action'
 | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
 | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'

Associated revisions

Revision 7a735978 (diff)
Added by Justin Sherrill about 2 years ago

Fixes #20138 - fix host pkgs api

uniq is not needed here, as the scoped_search method handles this
already

History

#1 Updated by Eric Helms about 2 years ago

  • Subject changed from hammer package list throws undefined method 'order' for Array to hammer host package list throws undefined method 'order' for Array

#2 Updated by Eric Helms about 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Justin Sherrill

#3 Updated by The Foreman Bot about 2 years ago

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

#4 Updated by Justin Sherrill about 2 years ago

  • Target version set to 202

#5 Updated by Justin Sherrill about 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Eric Helms about 2 years ago

  • Legacy Backlogs Release (now unused) changed from 267 to 281

Also available in: Atom PDF