Actions
Bug #6803
closedISE when search form is auto-completing repo name: PGError: ERROR: column reference "id" is ambiguous...
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1115308
Description of problem:
ISE when search form is auto-completing repo name: PGError: ERROR: column reference "id" is ambiguous...
Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140626.1
How reproducible:
always
Steps to Reproduce:
1. Sync some repo, e.g. I had "Sat6 tools" or something
2. Display packages search form:
Content -> Content Search -> Content: Packages
3. In Repositories section switch to "Auto-complete repos" and type "Sat" and
wait a bit auto-competition can start
Actual results:
Error appears:
PGError: ERROR: column reference "id" is ambiguous LINE 1: SELECT id FROM "katello_repositories" INNER JOIN "katello_pr... ^ : SELECT id FROM "katello_repositories" INNER JOIN "katello_products" ON "katello_products"."id" = "katello_repositories"."product_id" INNER JOIN "katello_content_view_versions" ON "katello_content_view_versions"."id" = "katello_repositories"."content_view_version_id" WHERE "katello_content_view_versions"."content_view_id" IN (1) AND "katello_repositories"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95) ORDER BY katello_repositories.name ASC (ActiveRecord::StatementInvalid)
Click here for more details.
Expected results:
Should work
Actions