Community
Participate
Working Groups
0521 Install Alphabet 1.0.0 in platform:/base: site (unzip) start Update to Alphabet 2.0.0 in C:\Temp revert to previous Platform.cfg doesn't Exclude C:\TEMP (Alphabet 2.0.0) plugins but the siteEntry is in platform.cfg
Ok, when we install Alph 1, we have one site with Alph 1 enable when we install Alph 2, we have 2 sites with Alph2 enable When we revert, the algorithm creates a configuration with the old sites (1 site) and compare the features. When we save to the platform, we save the configured sites from the currentConfiguration. We do not remove the invalid siteEntries In this situation, we do not disable, or unconfigure the site where Alph2 is the algorithm should disable all the sites of the platform configuration (platform.cfg), and then saving the one from the current configuration We also have to make sure we do not throw an exception if we cannot find the site we are saving in platform.cfg. Right now we do.
We should 1) check for the site we are about to write 2) disable all the site entries 3) write the site that we should write Also see 17266 if we do not find a site entry
InstallConfiguration#save(boolean) Added method InstallConfiguration#private void unconfigureSites(ConfiguredSiteModel[],IPlatformConfiguration) that logs if we are about to write a site that doesn't exists in PLatform.cfg, andthen unconfigure all sites in platform.cfg. The method savePluginPath nowe creates the Site without checking if it exists (because they are all unconfigured at this point) Verified with Redot I installed Redot1 in C:\TEMP\ and then reverted configuration. C:\TEMP\ does not appear as a site in platform.cfg I reverted again and C:\TEMP\ appears in platform.cfg Version under 20020525_16696
Verified 0528
Closing