Description of problem: Below error is seen when user clicks on Services > Requests Error caught: [NoMethodError] undefined method `find_tagged_with' for #<Class:0x000000000b5e3228> Version-Release number of selected component (if applicable): 5.9.4.7 How reproducible: Everytime at Cu environment Steps to Reproduce: 1. Restore DB dump of Cu 2. Click on Services> Requests 3. Actual results: User sees "Unexpected Error encountered" Expected results: the list of miq_requests should be shown Additional info: This started happening after recent update to 5.9.4.7 (from 5.9.2.4) , so this seems to be regression
https://github.com/ManageIQ/manageiq/pull/18114
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/ed5fbff7c264c6b3862c0552634234ec4a0bfebc commit ed5fbff7c264c6b3862c0552634234ec4a0bfebc Author: Gregg Tanzillo <gtanzill> AuthorDate: Fri Oct 19 16:07:51 2018 -0400 Commit: Gregg Tanzillo <gtanzill> CommitDate: Fri Oct 19 16:07:51 2018 -0400 Check if class is taggable before attempting to process tag expression This eliminates an error being raised when a tag expression was used in RBAC and is applied to a class that is not taggable Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641012 lib/rbac/filterer.rb | 2 +- spec/lib/rbac/filterer_spec.rb | 18 + 2 files changed, 19 insertions(+), 1 deletion(-)
New commit detected on ManageIQ/manageiq/hammer: https://github.com/ManageIQ/manageiq/commit/371a21f17a26376ccd8e473b645f8988ed61c5f1 commit 371a21f17a26376ccd8e473b645f8988ed61c5f1 Author: Joe Rafaniello <jrafanie.github.com> AuthorDate: Mon Oct 22 11:26:24 2018 -0400 Commit: Joe Rafaniello <jrafanie.github.com> CommitDate: Mon Oct 22 11:26:24 2018 -0400 Merge pull request #18114 from gtanzillo/fix-tag-expression-on-not-taggable-class Check if class is taggable before attempting to process tag expression (cherry picked from commit 6fa29c26a8dbb3c8935dfc4d521b6971073d3655) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641012 lib/rbac/filterer.rb | 2 +- spec/lib/rbac/filterer_spec.rb | 18 + 2 files changed, 19 insertions(+), 1 deletion(-)
Verification blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1643250
Took an empty database. Created a new user role, from an existing one, add a Managed -> environment -> production tag for that user role, assigned a group to this role, and added a user into this group. As an admin, created a request, then logged in as the user with this production tag. No error on seeing requests.User is able to see requests verified in 5.10.0.23.20181106165157_92dd189