Fix ALF-2499 (Deleting a web project also deletes similarly named web projects - Potential Data Loss)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-04-20 15:36:45 +00:00
parent b53c4f4fae
commit d74f934789
4 changed files with 35 additions and 10 deletions

View File

@@ -948,7 +948,7 @@ public final class SandboxFactory extends WCMUtil
String storeName = store.getName();
// list main stores - not preview stores or workflow stores or locally deployed "live" ASR servers (LIVE or TEST)
if ((storeName.startsWith(wpStoreId)) &&
if ((WCMUtil.getWebProjectStoreId(storeName).equals(wpStoreId)) &&
(! WCMUtil.isPreviewStore(storeName)) &&
((includeLocalhostDeployed || (! WCMUtil.isLocalhostDeployedStore(wpStoreId, storeName)))) &&
((includeWorkflowSandboxes || (! WCMUtil.isWorkflowStore(storeName))))