Hide Forgot
Description of problem: When searching on the webui for provisioning templates, the search errors out with the following like error: Oops, we're sorry but something went wrong PG::Error: ERROR: invalid reference to FROM-clause entry for table "hostgroups" LINE 1: SELECT hostgroups.id FROM "hostgroups" "hostgroups_template_... ^ HINT: Perhaps you meant to reference the table alias "hostgroups_template_combinations". : SELECT hostgroups.id FROM "hostgroups" "hostgroups_template_combinations" Version-Release number of selected component (if applicable): foreman-postgresql-1.11.0.53-1.el7sat.noarch How reproducible: N/A Steps to Reproduce: 1. 2. 3. Actual results: Postgres throwing errors when searching for information Expected results: Search results to return Additional info:
Was this fixed for 6.2.3? I can reproduce the error in 6.2.2 but 6.2.3 is working fine.
*** Bug 1390270 has been marked as a duplicate of this bug. ***
It appears that there is still an issue. Previously, I ran into Postgres errors when searching with a simple string rather than something like "name ~ search_term". I initially tested 6.2.3 with the Organization set to a specific org and the Location set to "Any Location." This worked fine. However, setting the Location to a specific location results in the same error: PG::Error: ERROR: invalid reference to FROM-clause entry for table "hostgroups" LINE 1: SELECT hostgroups.id FROM "hostgroups" "hostgroups_template_... ^ HINT: Perhaps you meant to reference the table alias "hostgroups_template_combinations". : SELECT hostgroups.id FROM "hostgroups" "hostgroups_template_combinations" There is an upstream bug here: http://projects.theforeman.org/issues/15498. Should I open a new bug or is this one good? Thanks, David
I think this one is good, it's the same issue. I link it to the upstream issue too, thanks David.
Upstream bug assigned to mhulan
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/15498 has been resolved.
A new case(#01774041) for satellite 6.2.6 has been reported to be hitting this bug. The below fix- http://projects.theforeman.org/projects/foreman/repository/revisions/77cb9ca918baa11f57dcb41ff2900e0292908c82/diff/app/models/concerns/taxonomix.rb is available in foreman 1.13 and works fine. Customer has asked if it can be back ported to foreman 1.11?
Verified both manually and through test automation scripts Functionality works properly starting 6.2.8 version
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0447