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:
Steven Glover
2010-09-16 07:33:40 +00:00
parent 4b87e7d8f7
commit 0dba104f26
2 changed files with 3 additions and 9 deletions

View File

@@ -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);

View File

@@ -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