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

Bug 461749

Summary: [server] server blows up on startup if it hits permission errors in the server workspace
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: 9.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2015-03-09 14:06:14 EDT
Suppose you have an orion server that normally runs as the user "orion". Files and folders under the server workspace will be created and owned by "orion".

Subsequently, an administrator goes into the server workspace and tries to "fix" some of the metadata files manually as the user "admin".

So originally the files were:
---- /opt/workspaces
drwxrwx---  101 orion orion   4096 Mar  9 10:06 serverworkspace

but folders and files became:
---- /opt/workspaces/serverworkspace
drwxrwx---   3 admin  admin    4096 Mar  9 10:06 pw  

As a result, when the server starts up, it tries to read the users under serverworkspace/pw and fails with a NPE 

A huge exception stack trace is sent to the log with zero indication on what the actual problem is.