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

Bug 421568

Summary: [server] server migration does not handle sites properly
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: arthorne.eclipse, Silenio_Quarti
Version: 5.0   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2013-11-12 15:08:37 EST
When migrating the server metadata from the old legacy format to the latest simple format, some sites are not migrated properly. In some cases the sites list is empty after migration and furthermore the corrupted site list causes problems when trying to create new sites ( see Bug 421537 )
Comment 1 Anthony Hunter CLA 2013-11-12 15:31:35 EST
We have been hit by corrupt metadata again. In the case of Silenio in Bug 421537, he had three sites on orion.eclipse.org before the migration, yet the Users.prefs says:

silenio/SiteConfigurations/A/Id=A
silenio/SiteConfigurations/B/Id=B
silenio/SiteConfigurations/silenio-A/Id=silenio-A
silenio/SiteConfigurations/silenio-B/Id=silenio-B
silenio/SiteConfigurations/silenio-C/Id=silenio-C

The first two do not exist in SiteConfigurations.prefs, which is the source of the corruption.
Comment 2 Anthony Hunter CLA 2013-11-12 16:48:36 EST
This problem has been fixed with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=478a624763a86eb65a2a279601d72763e449ffb1