Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.0)

56965 : Merged DEV to V4.1-BUG-FIX (4.1.7)
      55964 : MNT-9662 : HTTP error 500 when renaming a space with a numerical name via WebDAV
          - Prevent folders to take part in any kind of shuffle operation.
      56308 : MNT-9662 : HTTP error 500 when renaming a space with a numerical name via WebDAV
         - Unit test that demonstrate issue.
      - Fixed unit test failure that causes prevous merge (r57176) to be reverted.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/V4.2-BUG-FIX/root@57318 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Pavel Yurke
2013-10-29 13:10:11 +00:00
parent 78606a1207
commit c98f1dc00a
2 changed files with 123 additions and 10 deletions

View File

@@ -198,7 +198,7 @@ public class MoveMethod extends HierarchicalMethod
}
// ALF-7079 fix, if destination exists then its content is updated with source content and source is deleted if
// this is a move
if (destFileInfo != null && !sourceParentNodeRef.equals(destParentNodeRef))
if (!sourceFileInfo.isFolder() && destFileInfo != null && !sourceParentNodeRef.equals(destParentNodeRef))
{
copyContentOnly(sourceFileInfo, destFileInfo, fileFolderService);
fileFolderService.setHidden(destFileInfo.getNodeRef(), false);