Actions
Bug #36607
openDatabase doesn't enforce filters.role_id is NOT NULL
Status:
New
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Description
The Foreman code assumes the role is NOT NULL and tries to enforce it (https://github.com/theforeman/foreman/blob/b657d269a726e3bd3f7ebc8e67c7fc1d894d9176/app/models/filter.rb#L58) but it's not a database level constraint. This can lead to upgrade failures such as https://community.theforeman.org/t/foreman-3-0-database-migration-on-upgrade-fails-with-undefined-method/34299
No data to display
Actions