Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Authorization plugin : all user profiles are lost when upgrading to 3.5.0 #4031

Closed
rbeckman-nextgen opened this issue May 11, 2020 · 4 comments
Labels
Milestone

Comments

@rbeckman-nextgen
Copy link
Collaborator

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

Upon upgrading manually from 3.4.2 to 3.5.0, all user roles defined using auth plugin are lost.

Imported Issue. Original Details:
Jira Issue Key: MIRTH-4154
Reporter: atom
Created: 2017-05-09T02:02:14.000-0700

@rbeckman-nextgen rbeckman-nextgen added this to the 3.6.0 milestone May 11, 2020
@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

The role map should still be in the database. This appears to only happen when upgrading standalone instances; appliances are not affected.

As a workaround, when upgrading to 3.5 make sure to extract the User Auth extension zip into the extensions folder before starting MC back up.

Imported Comment. Original Details:
Author: narupley
Created: 2017-05-09T06:12:45.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

I confirm, if the auth jars and xml are manually copied in \extensions\auth at the end of the install process, i.e. before the server gets run or the Windows service gets installed and launched, the existing roles are kept.

THX

Imported Comment. Original Details:
Author: atom
Created: 2017-05-09T06:45:50.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

OS(s) and JRE version: virtual Window 7 with JRE version 1.8.0_111-b14 JRE version 1.8.0_91-b14
Version(s)/Build(s) to reproduce failure: reported in EXTENSIONS-346
mirthconnect-3.4.2.8129.b167-windows-x64 & auth-3.4.2.8129.b168.zip
Version(s)/Build(s) to verify fixes:
mirthconnect-3.5.0.8243.b175-windows-x64.exe & auth-3.5.0.8243.b177.zip
How Tested:

  • Setup MC 3.4.2 server with User Auth plugin
  • Create 3 users: tester1,tester2,tester3
  • Create 3 Roles: Alerts, Channels & Administrators
  • Assign each role to each user respectively
  • Backup Config
  • Upgrade to MC 3.5.0
  • Log in as "tester1" should have admin view at this point (no user roles)
  • Install User Auth plugin and restart MC server
  • Log in as "tester1" or "tester2" should have limited views (Alerts or Channels view only)
  • Log in as "tester3" should have all views & administrative permissions

Verified Fixed: verified that User Roles are preserved once User Auth is installed following a MC server upgrade

Imported Comment. Original Details:
Author: minht
Created: 2017-06-27T11:13:33.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

QA in ROCKSOLID-1113

Imported Comment. Original Details:
Author: minht
Created: 2017-06-27T13:23:39.000-0700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.