mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.9 to HEAD
10586: Merged V2.2 to V2.9 9883: Fix for https://issues.alfresco.com/jira/browse/ETWOTWO-561 9893: Gave some more time to wait for the threads to finish (QNameDAOTest) 9955: Added trace logging of calls that possibly cause failures during session flushing 9956: Part fix ETWOTWO570: RetryingTransactionAdvice needs to use RetryingTransactionHelper 9958: Fixed ETWOTWO-570: AVM transaction interceptors fail if methods are incorrectly declared 9973: More missing transaction declarations for AttributeService 9977: Fixed unit test to rollback properly after expected txn failure 9978: Fix for ETWOTWO-440: Error : 500: Failed to execute method NodeInfoBean.sendNodeInfo 9986: LinkValidationService missing txn declaration for onBootstrap 10588: Merged V2.2 to V2.9 9898: Fixed handling of cm:name on root nodes 9900: Empty property sets are allowed 10589: Merged V2.2 to V2.9 9965: Fixed unit test to inject 'nodeService' and not 'NodeService'. 10311: getWebProjectUserRole - change log level from info to debug 10329: Fix missing and mis-spelt transaction declarations 10343: Fix for ETWOTWO-32 10346: Build Fix 10358: Fix for ETWOTWO-621 10362: Fix for ETWOTWO-518 10371: QNameDAO cache doesn't blow up if cache entry is invalid 10538: Fix for minor XSS issue identified in ETWOTWO-657 item 3 10678: Merged V2.2 to V2.9 10205: Fix for ETWOTWO-48: Cancelled import of war into a Web project and Web Project became unusable 10206: Fix for ETWOTWO-181: Deletion of checked out document git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10710 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -563,32 +563,30 @@ public class AVMRepository
|
||||
// branching from. I'd be considerably happier if we disallowed
|
||||
// certain scenarios, but Jon won't let me :P (bhp).
|
||||
|
||||
Long parentAcl = dirNode.getAcl() == null ? null : dirNode.getAcl().getId();
|
||||
Long inheritAcl = srcNode.getAcl() == null ? null : srcNode.getAcl().getId();
|
||||
|
||||
if (srcNode.getType() == AVMNodeType.PLAIN_DIRECTORY)
|
||||
{
|
||||
dstNode = new PlainDirectoryNodeImpl((PlainDirectoryNode)srcNode, dstRepo, parentAcl, ACLCopyMode.COPY);
|
||||
dstNode = new PlainDirectoryNodeImpl((PlainDirectoryNode)srcNode, dstRepo, inheritAcl, ACLCopyMode.INHERIT);
|
||||
}
|
||||
else if (srcNode.getType() == AVMNodeType.LAYERED_DIRECTORY)
|
||||
{
|
||||
dstNode =
|
||||
new LayeredDirectoryNodeImpl((LayeredDirectoryNode)srcNode, dstRepo, sPath, false, parentAcl, ACLCopyMode.COPY);
|
||||
new LayeredDirectoryNodeImpl((LayeredDirectoryNode)srcNode, dstRepo, sPath, false, inheritAcl, ACLCopyMode.INHERIT);
|
||||
((LayeredDirectoryNode)dstNode).setLayerID(issueLayerID());
|
||||
}
|
||||
else if (srcNode.getType() == AVMNodeType.LAYERED_FILE)
|
||||
{
|
||||
dstNode = new LayeredFileNodeImpl((LayeredFileNode)srcNode, dstRepo, parentAcl, ACLCopyMode.COPY);
|
||||
dstNode = new LayeredFileNodeImpl((LayeredFileNode)srcNode, dstRepo, inheritAcl, ACLCopyMode.INHERIT);
|
||||
}
|
||||
else // This is a plain file.
|
||||
{
|
||||
dstNode = new PlainFileNodeImpl((PlainFileNode)srcNode, dstRepo, parentAcl, ACLCopyMode.COPY);
|
||||
dstNode = new PlainFileNodeImpl((PlainFileNode)srcNode, dstRepo, inheritAcl, ACLCopyMode.INHERIT);
|
||||
}
|
||||
// dstNode.setVersionID(dstRepo.getNextVersionID());
|
||||
dstNode.setAncestor(srcNode);
|
||||
dirNode.putChild(name, dstNode);
|
||||
dirNode.updateModTime();
|
||||
DbAccessControlList acl = srcNode.getAcl();
|
||||
dstNode.setAcl(acl != null ? acl.getCopy(parentAcl, ACLCopyMode.COPY) : null);
|
||||
String beginingPath = AVMNodeConverter.NormalizePath(srcPath);
|
||||
String finalPath = AVMNodeConverter.ExtendAVMPath(dstPath, name);
|
||||
finalPath = AVMNodeConverter.NormalizePath(finalPath);
|
||||
|
Reference in New Issue
Block a user