Project

General

Profile

Actions

Bug #21607

closed

ISE when trying to auto complete on a CV Docker Filter

Added by Partha Aji over 6 years ago. Updated almost 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 #1

Updated by Partha Aji over 6 years ago

  • Bugzilla link set to 1506865
Actions #2

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/7057 added
Actions #3

Updated by Partha Aji over 6 years ago

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

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 329
Actions

Also available in: Atom PDF