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
Updated by The Foreman Bot about 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Partha Aji
- Pull request https://github.com/Katello/katello/pull/8346 added
Updated by Partha Aji about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|f5f92bc36f844f2e534ea21c8daa27c8c9a3c799.
Updated by Justin Sherrill about 5 years ago
- Target version set to Katello 3.14.0
- Triaged changed from No to Yes
Actions