mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
69951: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 69870: MNT-11310 : Applying patch 'patch.siteLoadPatch.swsdp': Error message when applying patch in read-only mode - Using global instance of retryingTransactionHelper at patch transaction and using correct runAs user - correct restoring of fullyAuthenticatedUser Note that this fix requires the changes to the RetryingTransactionHelper that precede it git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@70467 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -450,7 +450,7 @@ public abstract class AbstractPatch implements Patch, ApplicationEventPublisher
|
||||
if (requiresTransaction())
|
||||
{
|
||||
// execute in a transaction
|
||||
String temp = transactionService.getRetryingTransactionHelper().doInTransaction(patchWork, false, true);
|
||||
String temp = this.transactionHelper.doInTransaction(patchWork, false, true);
|
||||
sb.append(temp);
|
||||
}
|
||||
else
|
||||
|
@@ -257,7 +257,7 @@ public class SiteLoadPatch extends AbstractPatch
|
||||
);
|
||||
|
||||
// At this point we can go back to being the system
|
||||
AuthenticationUtil.setRunAsUser(AuthenticationUtil.getSystemUserName());
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());
|
||||
|
||||
// Setup the Importer Bootstrap Beans
|
||||
for(ImporterBootstrap bootstrap : new ImporterBootstrap[] { spacesBootstrap, usersBootstrap })
|
||||
|
Reference in New Issue
Block a user