Bug #16044
closed
Errors in individual dashboard widgets fail entire page
Added by Daniel Lobato Garcia over 8 years ago.
Updated over 6 years ago.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1353749
Description of problem:
when using filters for Dashboard in Satellite 6.2 an sql error occurs.
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1.Create filters for users.
2.login as user and press dashboard.
3.
Actual results:
Oops, we're sorry but something went wrong PG::Error: ERROR: missing FROM-clause entry for table "katello_host_collections" LINE 1: ...id" IN (1) AND "hosts"."location_id" IN (2) AND (("katello_h... ^ : SELECT COUNT FROM (SELECT DISTINCT "katello_errata"."id" AS count_column FROM "katello_errata" INNER JOIN "katello_content_facet_errata" ON "katello_content_facet_errata"."erratum_id" = "katello_errata"."id" INNER JOIN "katello_content_facet_errata" "content_facet_errata_katello_errata_join" ON "content_facet_errata_katello_errata_join"."erratum_id" = "katello_errata"."id" INNER JOIN "katello_content_facets" ON "katello_content_facets"."id" = "content_facet_errata_katello_errata_join"."content_facet_id" WHERE "katello_content_facets"."host_id" IN (SELECT "hosts"."id" FROM "hosts" WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."organization_id" IN (1) AND "hosts"."location_id" IN (2) AND (("katello_host_collections"."name" ILIKE 'oss%'))) LIMIT 6) subquery_for_count
Expected results:
Seeing the dashboard.
Additional info:
- Target version set to 117
Cloned this to Foreman because we should handle dashboard failures from plugin gracefully (currently they break the entire page if just one widget fails)
- Subject changed from ActiveRecord::StatementInvalid in dashboard to Errors in individual dashboard widgets fail entire page
- Category set to Dashboard
- Priority changed from High to Normal
- Target version changed from 117 to 1.6.2
- Status changed from New to Assigned
- Assignee set to Tomer Brisker
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3762 added
- Related to Bug #16123: After upgrade "undefined method `name' for nil:NilClass" when visiting dashboard (oscap widget) added
- Related to Bug #14429: Katello - deleting version 1 and associated content views caused undefined method `name' for nil:NilClass added
- Related to Bug #16238: dashboard widget for latests events can be exteramlly slow added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Related to Bug #16260: Intermittent DashboardIntegrationTest failures added
- Translation missing: en.field_release set to 160
- Related to Bug #16358: smart proxy puppet dashboard is broken added
- Related to Bug #16702: dashboard widgets ignore filters added
- Related to Bug #15287: link in graph on Smart proxy -> Puppet page have "undefined" as smart proxy name added
- Related to Bug #16704: Searching fails on dashboard added
- Related to Bug #17244: Error accessing dashboard when user has filtered access to hosts added
- Has duplicate Bug #11316: A bad widget breaks the entire dashboard added
Also available in: Atom
PDF