Merge V2.9 to HEAD

9366: Fix ETWONINE-1 (ALFCOM-1699)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9654 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-07-04 15:29:04 +00:00
parent 5828f6c061
commit 3497aae8a0

View File

@@ -304,8 +304,12 @@ public class ImporterBootstrap extends AbstractLifecycleBean
PropertyCheck.mandatory(this, "importerService", importerService);
PropertyCheck.mandatory(this, "storeRef", storeRef);
Authentication authentication = authenticationComponent.setSystemUserAsCurrentUser();
// note: in MT case, this will run in System context of tenant domain
Authentication authentication = authenticationComponent.getCurrentAuthentication();
if (authenticationComponent.getCurrentUserName() == null)
{
authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName());
}
RetryingTransactionCallback<Object> doImportCallback = new RetryingTransactionCallback<Object>()
{