Project

General

Profile

Actions

Bug #36607

open

Database doesn't enforce filters.role_id is NOT NULL

Added by Ewoud Kohl van Wijngaarden 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF