AVMSyncService checkpoint. Compare() substantially works but is only

lightly tested.  This uncovered a bug in LayeredDirectoryNodeImpl of 
relatively ancient etiology. I thought I had a test that would have 
caught it. I was wrong.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-14 18:43:22 +00:00
parent bf1fdd9cd6
commit 1386cedef5
4 changed files with 380 additions and 8 deletions

View File

@@ -637,13 +637,15 @@ class LayeredDirectoryNodeImpl extends DirectoryNodeImpl implements LayeredDirec
{
BasicAttributes attrs = getBasicAttributes();
String path = lPath.getRepresentedPath();
if (path.endsWith("/"))
path = AVMNodeConverter.ExtendAVMPath(path, name);
String indirect = null;
if (fPrimaryIndirection)
{
path = path + name;
indirect = fIndirection;
}
else
{
path = path + "/" + name;
indirect = AVMNodeConverter.ExtendAVMPath(lPath.getCurrentIndirection(), name);
}
return new AVMNodeDescriptor(path,
name,
@@ -656,7 +658,7 @@ class LayeredDirectoryNodeImpl extends DirectoryNodeImpl implements LayeredDirec
attrs.getAccessDate(),
getId(),
getVersionID(),
getUnderlying(lPath),
indirect,
fPrimaryIndirection,
fLayerID,
fOpacity,