Project

General

Profile

Actions

Bug #21607

closed

ISE when trying to auto complete on a CV Docker Filter

Added by Partha Aji about 7 years ago. Updated over 6 years ago.

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

Description

1) Sync a docker repo (I picked "fedora/ssh" as upstream)
2) Create a content view
3) Add a docker repo to that CV
4) Add a Docker Filter of type include
5) Under Filter Details -> Tags click Add Rule
6) Open JS console (Inspect Elements -> Console)
7) Type some thing in the Include Tags text box "la" for auto completing latest

Expected:
"latest" as the suggested choice for autocomplete

Actual:
GET https://obelix.example.com/katello/api/v2/docker_tags/auto_complete_name?repoids%5B%5D=84&term=l 500 (Internal Server Error)

PG::UndefinedTable: ERROR:  missing FROM-clause entry for table "katello_docker_tags" 
 | LINE 1: ..."))) AND "katello_repositories"."id" = 84))) AND (katello_do...
 |                                                              ^
 | 
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cac
 ....
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.9/lib/active_record/relation/calculations.rb:186:in `pluck'
 | /home/vagrant/katello/app/controllers/katello/api/v2/docker_tags_controller.rb:13:in `auto_complete_name'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  .....
Actions

Also available in: Atom PDF