Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 450396

Summary: [server] default admin user not created on new server startup
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2014-11-06 15:00:07 EST
If you have an orion.conf with a value for "orion.auth.admin.default.password" and are starting the Orion server without an existing server workspace, the old IOrionCredentialsService automatically created the admin account.

We removed IOrionCredentialsService in Bug 444501.

We need to restore this capability as if you also have the setting "orion.auth.user.creation" there is no way to create the first user.
Comment 2 Anthony Hunter CLA 2014-11-12 14:48:48 EST
This issue was not fixed sufficiently.

The initializeAdminUser() was missing the hack to allow the LoggedInUserFilter to work, It needed the AuthorizationService.addUserRight() update.

The initializeAdminUser() was also failing sometimes because the UserName cache was not yet initialized so it was thinking the admin user did not exist and recreated it.

I can duplicate these issues in the development environment but they did not occur on orion.eclipse.org or orionhub.

I have resolved both issues in commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f8981f49bf50089fc335ad563c2eb5a7bbed41bf