From 80e0409f8fba8e70a38e53796c2f6477082df55c Mon Sep 17 00:00:00 2001 From: Mark Rogers Date: Wed, 30 Apr 2014 16:09:39 +0000 Subject: [PATCH] Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud) 68122: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 67228: MNT-7492: Merged DEV to V4.2-BUG-FIX (4.2.3) 66153: MNT-7492: Simple Web Script fails with "transaction required" error when authentication=none - Retrieve baseDir of the RepoStore on behalf of System User git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@68407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/repo/web/scripts/RepoStore.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/web/scripts/RepoStore.java b/source/java/org/alfresco/repo/web/scripts/RepoStore.java index 395e59bf6e..fc6677da24 100644 --- a/source/java/org/alfresco/repo/web/scripts/RepoStore.java +++ b/source/java/org/alfresco/repo/web/scripts/RepoStore.java @@ -257,7 +257,13 @@ public class RepoStore extends AbstractStore implements TenantDeployer private String getBaseDir() { - return getPath(getBaseNodeRef()); + return AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork() + { + public String doWork() throws Exception + { + return getPath(getBaseNodeRef()); + } + }, AuthenticationUtil.getSystemUserName()); } /* (non-Javadoc)