mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
59267: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (4.3/Cloud) 59266: Reverse Merge attempt at merging from V4.1-BUG-FIX (will do it again) AND record only merge the original commits 59231,59239 and reverse merge 59262 that took place on V4.1-BUG-FIX 59237: Merged V4.1-BUG-FIX (4.1.8) to V4.2-BUG-FIX (4.2.1) 59231: MNT-10237: Merged V4.1.6 (4.1.6.4) to V4.1-BUG-FIX (4.1.8) 58895: MNT-10109: Merged DEV to PATCHES/V4.1.6 (4.1.6.4) 58855: MNT-10109: Permissions are not restored when a deleted site is recovered from the trashcan - Fix unit tests failure by purging archived sites. Forbid new site creation if site group already exists. 58871: MNT-10109: Permissions are not restored when a deleted site is recovered from the trashcan - Return beforePurgeNode callback binding to Site class. 58947: MNT-10109: PATCHES/V4.1.6 (4.1.6.4) 58946: MNT-10109: Permissions are not restored when a deleted site is recovered from the trashcan - Fix test failures by purging deleted sites from trashcan so that sitename can be reused. Change SiteServiceImplTest to avoid database deadlock. 58949: MNT-10109: PATCHES/V4.1.6 (4.1.6.4) 58948: MNT-10109: Permissions are not restored when a deleted site is recovered from the trashcan - Fix test failures by purging deleted sites from trashcan so that sitename can be reused. 59240: Merged V4.1-BUG-FIX (4.1.8) to V4.2-BUG-FIX (4.2.1) 59239: MNT-10237: Permissions are not restored when a deleted site is recovered from the trashcan - The merge of the HF commit on 4.1.6 removed a variable that was not being used, but was being used in later versions. 59241: MNT-10237: Permissions are not restored when a deleted site is recovered from the trashcan - Correct error in merge from V4.1-BUG-FIX to V4.2-BUG-FIX git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62124 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,7 +27,6 @@ import org.alfresco.repo.action.executer.MailActionExecuter;
|
||||
import org.alfresco.repo.content.MimetypeMap;
|
||||
import org.alfresco.repo.invitation.WorkflowModelNominatedInvitation;
|
||||
import org.alfresco.repo.management.subsystems.ChildApplicationContextFactory;
|
||||
import org.alfresco.repo.node.archive.NodeArchiveService;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
|
||||
@@ -82,7 +81,6 @@ public class InviteServiceTest extends BaseWebScriptTest
|
||||
private MutableAuthenticationDao mutableAuthenticationDao;
|
||||
private NamespaceService namespaceService;
|
||||
private TransactionService transactionService;
|
||||
private NodeArchiveService nodeArchiveService;
|
||||
|
||||
// stores invitee email addresses, one entry for each "start invite" operation
|
||||
// invoked, so that resources created for each invitee for each test
|
||||
@@ -136,7 +134,6 @@ public class InviteServiceTest extends BaseWebScriptTest
|
||||
this.namespaceService = (NamespaceService) getServer().getApplicationContext().getBean("NamespaceService");
|
||||
this.transactionService = (TransactionService) getServer().getApplicationContext()
|
||||
.getBean("TransactionService");
|
||||
this.nodeArchiveService = (NodeArchiveService)getServer().getApplicationContext().getBean("nodeArchiveService");
|
||||
|
||||
configureMailExecutorForTestMode(this.getServer());
|
||||
|
||||
@@ -282,19 +279,6 @@ public class InviteServiceTest extends BaseWebScriptTest
|
||||
{
|
||||
super.tearDown();
|
||||
|
||||
|
||||
RunAsWork<SiteInfo[]> runAsWork = new RunAsWork<SiteInfo[]>()
|
||||
{
|
||||
public SiteInfo[] doWork() throws Exception
|
||||
{
|
||||
SiteInfo[] siteInfos = { siteService.getSite(SITE_SHORT_NAME_INVITE_1),
|
||||
siteService.getSite(SITE_SHORT_NAME_INVITE_2),
|
||||
siteService.getSite(SITE_SHORT_NAME_INVITE_3) };
|
||||
return siteInfos;
|
||||
}
|
||||
};
|
||||
final SiteInfo[] siteInfos = AuthenticationUtil.runAs(runAsWork, AuthenticationUtil.getSystemUserName());
|
||||
|
||||
//
|
||||
// run various teardown operations which need to be run as 'admin'
|
||||
//
|
||||
@@ -349,19 +333,6 @@ public class InviteServiceTest extends BaseWebScriptTest
|
||||
}
|
||||
return null;
|
||||
}});
|
||||
|
||||
AuthenticationUtil.runAs(new RunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
for (SiteInfo siteInfo : siteInfos)
|
||||
{
|
||||
nodeArchiveService.purgeArchivedNode(nodeArchiveService.getArchivedNode(siteInfo.getNodeRef()));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}, AuthenticationUtil.getSystemUserName());
|
||||
|
||||
}
|
||||
|
||||
public static String PERSON_FIRSTNAME = "FirstName123";
|
||||
|
Reference in New Issue
Block a user