Bug 1623464
Summary: | Tenant administrator can't navigate to Access Control -> Groups; 500 Internal Server Error | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Antonin Pagac <apagac> | ||||
Component: | Appliance | Assignee: | Keenan Brock <kbrock> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Antonin Pagac <apagac> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.10.0 | CC: | abellott, apagac, dmetzger, kbrock, obarenbo, simaishi, yrudman | ||||
Target Milestone: | GA | Keywords: | Regression | ||||
Target Release: | 5.10.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 5.10.0.15 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-02-12 16:51:25 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: | |||||||
Attachments: |
|
Description
Antonin Pagac
2018-08-29 12:32:44 UTC
Hi Antonin, do you have the error and backtrace from the log or a set of logs that we can look at? Looks like groups, user_roles, and users have this same bug. Very close to having a fix New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/9a9b5ddc47ff8baae49ed1a7cba37732d609df11 commit 9a9b5ddc47ff8baae49ed1a7cba37732d609df11 Author: Keenan Brock <keenan> AuthorDate: Thu Aug 30 14:18:21 2018 -0400 Commit: Keenan Brock <keenan> CommitDate: Thu Aug 30 14:18:21 2018 -0400 fix: with_role_excluding has bad subquery Rbac.filtered/search uses this method to filter by tenant admin Unfortunately, the subquery was using the select from the main query and producing bad queries It is now properly isolating the queries and tests have been added to protect against regressions https://bugzilla.redhat.com/show_bug.cgi?id=1623464 app/models/miq_group.rb | 2 +- app/models/miq_user_role.rb | 2 +- app/models/user.rb | 4 +- spec/lib/rbac/filterer_spec.rb | 6 +- spec/models/miq_group_spec.rb | 10 + spec/models/miq_user_role_spec.rb | 10 + spec/models/user_spec.rb | 24 + 7 files changed, 51 insertions(+), 7 deletions(-) this is on master you should be good to go Verified with 5.10.0.15. |