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

Bug 420677

Summary: [server] simple metadata storage does not handle a missing orion.file.layout option
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2013-10-29 16:56:53 EDT
We said in https://bugs.eclipse.org/bugs/show_bug.cgi?id=416653#c3 that the SimpleMetaStore will only support orion.file.layout=userTree and we said in https://bugs.eclipse.org/bugs/show_bug.cgi?id=412995#c19 that we need to specify both:
orion.core.metastore=simple
orion.file.layout=userTree

However, if you do not specify a value for orion.file.layout at all, some servlets default to flat yet SimpleMetaStore defaults to userTree. This causes some files to land in an unexpected location under the workspace root, depending on who they ask for the project location.
Comment 1 Anthony Hunter CLA 2013-10-30 11:32:03 EDT
The Orion server makes use of OrionConfiguration.getUserHome(), This method already checks the layout preference, it also needs to check the metastore preference.