mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -374,6 +374,13 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
|
|||||||
|
|
||||||
rootNodeRef = relPathNode;
|
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
|
// Commit the transaction
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user