mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
8265: Added catch blocks for the permissions service access denied exception to various file/folder operations 8286: Merged V2.1 to V2.2 8256: Fix broken WCM workflow. 8257: Partial fix for AWC-1850 8283: Merged V2.1-A to V2.1 8264: Fine-grained debug logging for exceptions causing transaction retries. 8288: Should fix workflow problems. Hard to test since almost nothing works right now. 8291: Added Peter's fixes to improve deployment start scripts 8294: Update deploy script from Peter 8298: Fix for WCM-1058: 8300: Commented out admin dashlet (active_tasks) 8359: Fix AR-1735: Customer-requested POI upgrade 8367: Fix for AWC-1639 8368: Fix for WCM-1102 8389: Revert changes between r8072 and r8251 from Schema2XForms.java 8401: Fix for WCM-1105 8407: Minor typo fix git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,8 +23,6 @@
|
||||
|
||||
package org.alfresco.filesys.avm;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.filesys.alfresco.AlfrescoContext;
|
||||
import org.alfresco.filesys.alfresco.IOControlHandler;
|
||||
import org.alfresco.filesys.state.FileState;
|
||||
@@ -37,9 +35,6 @@ import org.alfresco.repo.avm.CreateStoreCallback;
|
||||
import org.alfresco.repo.avm.CreateVersionCallback;
|
||||
import org.alfresco.repo.avm.PurgeStoreCallback;
|
||||
import org.alfresco.repo.avm.PurgeVersionCallback;
|
||||
import org.alfresco.repo.domain.PropertyValue;
|
||||
import org.alfresco.sandbox.SandboxConstants;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
@@ -58,7 +53,7 @@ public class AVMContext extends AlfrescoContext
|
||||
private static final Log logger = LogFactory.getLog(AVMContext.class);
|
||||
|
||||
// Constants
|
||||
//
|
||||
//
|
||||
// Version id that indicates the head version
|
||||
|
||||
public static final int VERSION_HEAD = -1;
|
||||
@@ -246,6 +241,7 @@ public class AVMContext extends AlfrescoContext
|
||||
|
||||
return showStore;
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the filesystem context
|
||||
*/
|
||||
|
@@ -868,6 +868,14 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface
|
||||
{
|
||||
throw new FileNotFoundException(params.getPath());
|
||||
}
|
||||
catch (AVMLockingException ex)
|
||||
{
|
||||
throw new AccessDeniedException(params.getPath());
|
||||
}
|
||||
catch ( org.alfresco.repo.security.permissions.AccessDeniedException ex)
|
||||
{
|
||||
throw new AccessDeniedException(params.getPath());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -967,6 +975,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface
|
||||
{
|
||||
throw new AccessDeniedException(params.getPath());
|
||||
}
|
||||
catch ( org.alfresco.repo.security.permissions.AccessDeniedException ex)
|
||||
{
|
||||
throw new AccessDeniedException(params.getPath());
|
||||
}
|
||||
|
||||
// Return the file
|
||||
|
||||
@@ -1039,6 +1051,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface
|
||||
{
|
||||
throw new IOException("Invalid path, " + dir);
|
||||
}
|
||||
catch ( org.alfresco.repo.security.permissions.AccessDeniedException ex)
|
||||
{
|
||||
throw new AccessDeniedException("Access denied, " + dir);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1105,6 +1121,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface
|
||||
{
|
||||
throw new AccessDeniedException("File locked, " + name);
|
||||
}
|
||||
catch ( org.alfresco.repo.security.permissions.AccessDeniedException ex)
|
||||
{
|
||||
throw new AccessDeniedException("Access denied, " + name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1493,6 +1513,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface
|
||||
{
|
||||
throw new FileNotFoundException(params.getPath());
|
||||
}
|
||||
catch ( org.alfresco.repo.security.permissions.AccessDeniedException ex)
|
||||
{
|
||||
throw new FileNotFoundException(params.getPath());
|
||||
}
|
||||
|
||||
// Return the file
|
||||
|
||||
@@ -1615,6 +1639,10 @@ public class AVMDiskDriver extends AlfrescoDiskDriver implements DiskInterface
|
||||
{
|
||||
throw new FileExistsException("Destination exists, " + newName);
|
||||
}
|
||||
catch ( org.alfresco.repo.security.permissions.AccessDeniedException ex)
|
||||
{
|
||||
throw new AccessDeniedException("Access denied, " + oldName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user