Project

General

Profile

Actions

Bug #25174

closed

User filters on katello fields break fact values page

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Shimon Shtein over 5 years ago

  • Bugzilla link set to 1569395
Actions #2

Updated by The Foreman Bot over 5 years ago

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

Updated by Shimon Shtein over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Michael Johnson over 5 years ago

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

Also available in: Atom PDF