Project

General

Profile

Actions

Bug #30555

closed

Authorizer is unable to handle association mismatch

Added by Ondřej Ezr almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Authorizer is not able to handle situations of filter being defined for association that is defined on Host::Managed, if association to the Host is to the Host::Base

Example:

Filter( permissions: ['view_hosts'], search: 'os = Debian' )
Authorizer#find_collection(Host, permission: :view_hosts, joined_on: FactValue)

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #30681: Filter on fact value is not working properly when FactValue has some default loadsClosedOndřej EzrActions
Has duplicate Foreman - Bug #29011: Adding search for Operating system in role's host filter with permission view_hosts does not construct SQL query when API is usedDuplicateOndřej EzrActions
Actions #1

Updated by Ondřej Ezr almost 4 years ago

  • Related to Bug #29011: Adding search for Operating system in role's host filter with permission view_hosts does not construct SQL query when API is used added
Actions #2

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Ezr
  • Pull request https://github.com/theforeman/foreman/pull/7877 added
Actions #3

Updated by Ondřej Ezr over 3 years ago

  • Related to Bug #30681: Filter on fact value is not working properly when FactValue has some default loads added
Actions #4

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases 2.3.0 added
Actions #5

Updated by Ondřej Ezr over 3 years ago

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

Updated by Ondřej Ezr over 3 years ago

  • Related to deleted (Bug #29011: Adding search for Operating system in role's host filter with permission view_hosts does not construct SQL query when API is used)
Actions #7

Updated by Ondřej Ezr over 3 years ago

  • Has duplicate Bug #29011: Adding search for Operating system in role's host filter with permission view_hosts does not construct SQL query when API is used added
Actions #8

Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added
Actions #9

Updated by Tomer Brisker over 3 years ago

  • Target version changed from 2.2.0 to 2.3.0
Actions

Also available in: Atom PDF