Fixes WCM-495, in which second deployments don't work.

Problem was aspects being added willy nilly, regardless of their existence.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5993 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-06-16 16:29:43 +00:00
parent e59e2ab976
commit 7640f0b32b
2 changed files with 9 additions and 3 deletions

View File

@@ -490,6 +490,10 @@ public class DeploymentServiceImpl implements DeploymentService
List<QName> aspects = fAVMService.getAspects(version, src.getPath());
for (QName aspect : aspects)
{
if (remote.hasAspect(-1, dst.getPath(), aspect))
{
continue;
}
remote.addAspect(dst.getPath(), aspect);
}
remote.setGuid(dst.getPath(), src.getGuid());