mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -55,6 +55,7 @@ import org.alfresco.repo.avm.CreateVersionTxnListener;
|
|||||||
import org.alfresco.repo.avm.PurgeStoreTxnListener;
|
import org.alfresco.repo.avm.PurgeStoreTxnListener;
|
||||||
import org.alfresco.repo.avm.PurgeVersionTxnListener;
|
import org.alfresco.repo.avm.PurgeVersionTxnListener;
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
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.AVMExistsException;
|
||||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||||
import org.alfresco.service.cmr.avm.AVMNotFoundException;
|
import org.alfresco.service.cmr.avm.AVMNotFoundException;
|
||||||
@@ -667,6 +668,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface {
|
|||||||
{
|
{
|
||||||
throw new FileNotFoundException( params.getPath());
|
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());
|
throw new FileNotFoundException( params.getPath());
|
||||||
}
|
}
|
||||||
|
catch ( AVMBadArgumentException ex)
|
||||||
|
{
|
||||||
|
throw new FileNotFoundException( params.getPath());
|
||||||
|
}
|
||||||
|
|
||||||
// Return the file
|
// Return the file
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user