Bug #5689

Plugin permissions are skipped during migration from old to new system

Added by Marek Hulán over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Marek Hulán
Category:DB migrations
Target version:Sprint 23
Difficulty: Bugzilla link:1107696
Found in release:1.5.0 Pull request:
Story points-
Velocity based estimate-
Release1.5.1Release relationshipAuto

Description

Plugin initializer is loaded only once when running multiple migrations. Since plugin permissions are ignored (permissions table does not exist yet) they are not created in database and permission migration can't migrate them. Therefore we must find all plugin permission during permission migration and create them before that.


Related issues

Blocks Foreman - Tracker #4552: New permissions/authorization system issues New 03/05/2014

Associated revisions

Revision 1a6e0963
Added by Marek Hulán over 3 years ago

Fixes #5689 - Plugin permissions are migrated too

Revision 423aa160
Added by Marek Hulán over 3 years ago

Fixes #5689 - Plugin permissions are migrated too

(cherry picked from commit 1a6e0963a7229abbece7838b72c7e74660aafa25)

History

#1 Updated by Marek Hulán over 3 years ago

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

#2 Updated by Marek Hulán over 3 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Marek Hulán over 3 years ago

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

#4 Updated by Bryan Kearney over 3 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1107696

Also available in: Atom PDF