mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -304,8 +304,12 @@ public class ImporterBootstrap extends AbstractLifecycleBean
|
|||||||
PropertyCheck.mandatory(this, "importerService", importerService);
|
PropertyCheck.mandatory(this, "importerService", importerService);
|
||||||
PropertyCheck.mandatory(this, "storeRef", storeRef);
|
PropertyCheck.mandatory(this, "storeRef", storeRef);
|
||||||
|
|
||||||
|
// note: in MT case, this will run in System context of tenant domain
|
||||||
Authentication authentication = authenticationComponent.setSystemUserAsCurrentUser();
|
Authentication authentication = authenticationComponent.getCurrentAuthentication();
|
||||||
|
if (authenticationComponent.getCurrentUserName() == null)
|
||||||
|
{
|
||||||
|
authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName());
|
||||||
|
}
|
||||||
|
|
||||||
RetryingTransactionCallback<Object> doImportCallback = new RetryingTransactionCallback<Object>()
|
RetryingTransactionCallback<Object> doImportCallback = new RetryingTransactionCallback<Object>()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user