Added check to make sure root filesystem node is a folder node when no relative path is specified. ETWOTWO-566.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2008-07-17 12:40:47 +00:00
parent f950dfaf09
commit 4423b7c65c

View File

@@ -374,6 +374,13 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
rootNodeRef = relPathNode;
}
else {
// Make sure the default root node is a folder
if ( cifsHelper.isDirectory( rootNodeRef) == false)
throw new DeviceContextException("Root node is not a folder type node");
}
// Commit the transaction