Project

General

Profile

Actions

Bug #4548

closed

[foretello] cannot search organization by title

Added by Thomas McKay about 10 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

This issue only appears in foretello mode but is related to core organization model.

Entering "title =" into the UI widget generates the following error.

Organization Load (0.3ms) SELECT DISTINCT "taxonomies".title FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') ORDER BY title LIMIT 20
Completed 500 Internal Server Error in 19.4ms

ActiveModel::MissingAttributeError (missing attribute: default_info):
app/controllers/concerns/foreman/controller/auto_complete_search.rb:7:in `auto_complete_search'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Search via API is same.

Commenting out the default_info in the organization extension leads to another error, but I am unsure if it is relevant.

Organization Load (0.4ms)  SELECT "taxonomies".* FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') AND "taxonomies"."id" = 1 ORDER BY title LIMIT 1
Completed 500 Internal Server Error in 14.3ms

TypeError (can't convert Array into String):
app/controllers/application_controller.rb:342:in `set_taxonomy'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

This is a blocker issue for searching via API as it prevents getting org id.

Unsure what redmine category this falls into


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #4789: search auto completer on progress many times failDuplicate03/24/2014Actions
Actions

Also available in: Atom PDF