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

Bug 421024

Summary: [server] set the default to use the simple metadata storage
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2013-11-04 16:50:51 EST
In Orion 3.0, the legacy metadata storage was used and there was no orion.core.metastore property.

In Orion 4.0, there is a orion.core.metastore property.
If property orion.core.metastore=legacy was set, the legacy metadata storage was used.
If property orion.core.metastore=simple was set, the new simple metadata storage was used.
If property orion.core.metastore was not set, the legacy metadata storage was used.
The administrator had to physically set orion.core.metastore=simple to use the new simple metadata storage. Migration was done if there exists a securestorage/user_store.

In Orion 5.0, we want the default to be the simple metadata storage.
If property orion.core.metastore=legacy is set, the legacy metadata storage is used.
If property orion.core.metastore=simple is set, the simple metadata storage is used.
If property orion.core.metastore not set, the simple metadata storage should now be used.
We do not want automatic migration however, since that would modify the project folders on disk with out the administrator's knowledge.
We want the administrator to give permission that a migration can occur by setting orion.core.metastore=simple, just like in Orion 4.0.
So if orion.core.metastore is not set and either of securestorage/user_store or .settings/Users.prefs exist, complain with an error message that the legacy metadata storage is deprecated, point to the migration wiki document and still use legacy metadata storage with these existing files.
Comment 2 Anthony Hunter CLA 2013-11-08 15:30:28 EST
Delivered the fix for the development environment in commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=03ffea701d4abc656dc467f2123e9889ba1a73a1