Actions
Bug #27862
closedRepository Autocomplete broken for Container Image Tags
Description
Found while reviewing https://github.com/Katello/katello/pull/8346/files
::Katello::DockerMetaTag.complete_for("repository=") 2019-09-16T20:19:41 [W|app|] DEPRECATION WARNING: Dangerous query method (method whose arguments are used as raw SQL) called with non-attribute argument(s): "\"katello_repositories\".\"name\"". Non-attribute arg uments will be disallowed in Rails 6.0. This method should not be called with user-provided values, such as request parameters or model attributes. Known-safe values can be passed by wrapping them in Arel.sql(). (called from irb_binding at (irb):7) Traceback (most recent call last): 1: from (irb):7 ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column katello_repositories.name does not exist) LINE 1: SELECT DISTINCT "katello_repositories"."name" FROM "katello... ^ : SELECT DISTINCT "katello_repositories"."name" FROM "katello_repositories" ORDER BY "katello_repositories"."name" LIMIT $1
Reproducible in the UI through Content -> Container Image Tags and typing 'repository = ' in the search box
Actions