Project

General

Profile

Actions

Bug #16211

closed

Audit auto-complete is failed when searching by host

Added by Amir Fefer over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Reproduce:
In audit search-bar (e.g: user < email preferences < audit query builder) type `host = `
the auto-complete will failed with NoMethodError:

2016-08-21T15:21:54 5455fa1c [app] [F] 
 | NoMethodError (undefined method `scoped' for #<Class:0x0000000ced5b50>):
 |   app/models/host.rb:15:in `method_missing'
 |   app/controllers/concerns/foreman/controller/auto_complete_search.rb:13:in `auto_complete_search'
 |   app/controllers/concerns/application_shared.rb:14:in `set_timezone'
 |   app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 |   lib/middleware/catch_json_parse_errors.rb:9:in `call'
 |   lib/middleware/tagged_logging.rb:18:in `call'

Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3753 added
Actions #2

Updated by Daniel Lobato Garcia over 7 years ago

  • Target version set to 1.6.2
Actions #3

Updated by Amir Fefer over 7 years ago

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

Updated by Dominic Cleal over 7 years ago

  • Category set to Search
  • translation missing: en.field_release set to 181
Actions

Also available in: Atom PDF