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

@@ -256,9 +256,15 @@ public class RepoStore extends AbstractStore implements TenantDeployer
} }
private String getBaseDir() private String getBaseDir()
{
return AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<String>()
{
public String doWork() throws Exception
{ {
return getPath(getBaseNodeRef()); return getPath(getBaseNodeRef());
} }
}, AuthenticationUtil.getSystemUserName());
}
/* (non-Javadoc) /* (non-Javadoc)
* @see org.alfresco.web.scripts.Store#isSecure() * @see org.alfresco.web.scripts.Store#isSecure()