mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALF-3081: "Failed to signal transition from workflow "Expired content in 'Test'" task when click "Task Done"s"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22572 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -190,15 +190,6 @@ public class AVMLockingServiceImpl implements AVMLockingService
|
|||||||
{
|
{
|
||||||
case LOCK_NOT_OWNER:
|
case LOCK_NOT_OWNER:
|
||||||
case LOCK_OWNER:
|
case LOCK_OWNER:
|
||||||
if (currentLockState.equals(LockState.LOCK_NOT_OWNER))
|
|
||||||
{
|
|
||||||
// The lock is held by another user
|
|
||||||
if (! AuthenticationUtil.isRunAsUserTheSystemUser())
|
|
||||||
{
|
|
||||||
String currentLockOwner = getLockOwner(avmStore, path);
|
|
||||||
throw new AVMLockingException("avmlockservice.locked", path, currentLockOwner);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Remove the lock first
|
// Remove the lock first
|
||||||
attributeService.removeAttribute(KEY_AVM_LOCKS, avmStore, path);
|
attributeService.removeAttribute(KEY_AVM_LOCKS, avmStore, path);
|
||||||
HashMap<String, String> lockAttributes = createLockAttributes(lockOwner, lockData);
|
HashMap<String, String> lockAttributes = createLockAttributes(lockOwner, lockData);
|
||||||
|
@@ -25,6 +25,9 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
/**
|
/**
|
||||||
* Service to handle AVM locking.
|
* Service to handle AVM locking.
|
||||||
*
|
*
|
||||||
|
* Note that this service is a low-level service and does no "self-permissioning"
|
||||||
|
* e.g. checking ownership of locks.
|
||||||
|
*
|
||||||
* @author Derek Hulley, janv
|
* @author Derek Hulley, janv
|
||||||
*/
|
*/
|
||||||
public interface AVMLockingService
|
public interface AVMLockingService
|
||||||
|
Reference in New Issue
Block a user