Bug #30555
closed
Authorizer is unable to handle association mismatch
Added by Ondřej Ezr over 4 years ago.
Updated about 4 years ago.
Category:
Users, Roles and Permissions
|
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 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
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Ezr
- Pull request https://github.com/theforeman/foreman/pull/7877 added
- Related to Bug #30681: Filter on fact value is not working properly when FactValue has some default loads added
- Fixed in Releases 2.3.0 added
- Status changed from Ready For Testing to Closed
- 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)
- 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
- Pull request https://github.com/theforeman/foreman/pull/7975 added
- Target version changed from 2.2.0 to 2.3.0
Also available in: Atom
PDF