Project

General

Profile

Bug #25174

User filters on katello fields break fact values page

Added by Shimon Shtein over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

If current user has filter set on katello field for view_hosts, fact values page will result in an exception:
"Can't join 'Host::Base' to association named 'lifecycle_environment'; perhaps you misspelled it?"

Repro:

Clone "Viewers" role to "Restricted viewer".
Edit "Restricted viewer" and add "lifecycle_environment = Library" restriction to view_hosts filter.
Create a user and assign "Restricted viewer" to it.
Log in as this user and go to Monitor -> Facts.

Expected:
Normal response

Actual:
Exception

Associated revisions

Revision 931c4dbe (diff)
Added by Shimon Shtein over 4 years ago

Fixes #25174 - Moved facet extensions to proper API

History

#1 Updated by Shimon Shtein over 4 years ago

  • Bugzilla link set to 1569395

#2 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7748 added

#3 Updated by Shimon Shtein over 4 years ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Michael Johnson over 4 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.0

Also available in: Atom PDF