Added catch of bad argument exception in create file and create directory.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2007-01-29 10:43:16 +00:00
parent b92da20832
commit 01fb4eac8a

View File

@@ -55,6 +55,7 @@ import org.alfresco.repo.avm.CreateVersionTxnListener;
import org.alfresco.repo.avm.PurgeStoreTxnListener;
import org.alfresco.repo.avm.PurgeVersionTxnListener;
import org.alfresco.repo.security.authentication.AuthenticationComponent;
import org.alfresco.service.cmr.avm.AVMBadArgumentException;
import org.alfresco.service.cmr.avm.AVMExistsException;
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
import org.alfresco.service.cmr.avm.AVMNotFoundException;
@@ -667,6 +668,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface {
{
throw new FileNotFoundException( params.getPath());
}
catch ( AVMBadArgumentException ex)
{
throw new FileNotFoundException( params.getPath());
}
}
/**
@@ -753,6 +758,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface {
{
throw new FileNotFoundException( params.getPath());
}
catch ( AVMBadArgumentException ex)
{
throw new FileNotFoundException( params.getPath());
}
// Return the file