Project

General

Profile

Bug #5540

User filters not migrated when user only has builtin roles

Added by Dominic Cleal over 5 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

The permissions migration added in #812 doesn't migrate user filters if they only have builtin roles associated.

0. Use pre-#812 Foreman
1. Create a user with no roles (they'll get the implicit Anonymous builtin role)
2. Edit the user and add a filter on a host group
3. Migrate to post-#812
4. Check the user, they'll have no roles but should've got a personalised one


Related issues

Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Associated revisions

Revision 5f72ef39 (diff)
Added by Dominic Cleal over 5 years ago

fixes #5540 - also clone builtin roles during migration

Revision 7455449e (diff)
Added by Dominic Cleal over 5 years ago

fixes #5540 - also clone builtin roles during migration

(cherry picked from commit 5f72ef39f3bee84942d6706e2d9954d219a56ee4)

History

#1 Updated by Dominic Cleal over 5 years ago

  • Blocks Tracker #4552: New permissions/authorization system issues added

#2 Updated by Dominic Cleal over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Target version set to 1.8.3
  • Legacy Backlogs Release (now unused) set to 4

#3 Updated by Dominic Cleal over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF