Bug 1921150
Summary: | Tasks view fails for non-admin with PG::SyntaxError: ERROR: syntax error at or near "'1,6,4,3,5'" | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Ondrejka <pondrejk> | ||||||
Component: | Tasks Plugin | Assignee: | Adam Ruzicka <aruzicka> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.9.0 | CC: | aruzicka, pcreech, zhunting | ||||||
Target Milestone: | 6.9.0 | Keywords: | Triaged | ||||||
Target Release: | Unused | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | tfm-rubygem-foreman-tasks-3.0.5 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2021-04-21 13:10:30 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1741943 | ||||||||
Attachments: |
|
Description
Peter Ondrejka
2021-01-27 15:30:52 UTC
Created attachment 1751293 [details]
prodlog
Created attachment 1751294 [details]
prodlog2
Alternative steps to reproduce: 1) run foreman-rake console 2) Enter ForemanTasks::Task.search_for("organization_id ^ (1)").first Note: Searching by taxonomies on tasks still uses a custom external method, which doesn't handle queries with IN well. Hello, on Satellite 6.8.3: ~]# foreman-rake console ForemanTasks::Task.search_for("organization_id ^ (1)").first Loading production environment (Rails 6.0.3.1) irb(main):001:0> ForemanTasks::Task.search_for("organization_id ^ (1)").first Traceback (most recent call last): 2: from lib/tasks/console.rake:5:in `block in <top (required)>' 1: from (irb):1 ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "'1'") LINE 3: ...foreman_tasks_locks_taxonomyb72f2d.resource_id IN '1' OR for... ^ Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31773 has been resolved. Requesting 6.9.0+ since this blocks https://bugzilla.redhat.com/show_bug.cgi?id=1741943 Verified on Satellite 6.9 snap 15 Sorry, taking back comment#9, the verification steps from comment#3 work well, though when using original steps (cloned role with multiple orgs and user with some of those orgs) the issue persists with the following in the production log: PG::InvalidTextRepresentation: ERROR: invalid input syntax for type integer: "1,3,5,7,6,4" ab598f13 | LINE 7: ...oreman_tasks_locks_taxonomyc9ce1d.resource_id IN ('1,3,5,7,6... Hi Zach, I still see tfm-rubygem-foreman-tasks-3.0.4 on snap 16, did we miss a cherry-pick? Verified on Satellite 6.9 snap 17 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 (Moderate: Satellite 6.9 Release), 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/RHSA-2021:1313 |