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
This commit is contained in:
Mark Rogers
2014-04-30 16:09:39 +00:00
parent b331e89f27
commit 80e0409f8f

View File

@@ -257,7 +257,13 @@ public class RepoStore extends AbstractStore implements TenantDeployer
private String getBaseDir()
{
return getPath(getBaseNodeRef());
return AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<String>()
{
public String doWork() throws Exception
{
return getPath(getBaseNodeRef());
}
}, AuthenticationUtil.getSystemUserName());
}
/* (non-Javadoc)