mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
127134 cturlica: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2) 127102 rmunteanu: MNT-15614 : Site with name "IT" cannot be managed properly - Changed the way the role name is striped out. - Implemented tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@127160 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -869,6 +869,33 @@ public class SiteServiceImplTest extends BaseAlfrescoSpringTest
|
||||
startNewTransaction();
|
||||
}
|
||||
|
||||
public void testMNT_15614() throws Exception
|
||||
{
|
||||
RetryingTransactionCallback<Object> work = new RetryingTransactionCallback<Object>()
|
||||
{
|
||||
|
||||
@Override
|
||||
public Object execute() throws Throwable
|
||||
{
|
||||
String[] siteNames = { "it", "site", "GROUP" };
|
||||
|
||||
authenticationComponent.setCurrentUser(AuthenticationUtil.getAdminUserName());
|
||||
|
||||
for (String siteName : siteNames)
|
||||
{
|
||||
siteService.createSite(siteName, siteName, siteName, siteName, SiteVisibility.PUBLIC);
|
||||
assertEquals( SiteModel.SITE_MANAGER, siteService.getMembersRole(siteName, AuthenticationUtil.getAdminUserName()));
|
||||
siteService.deleteSite(siteName);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
};
|
||||
endTransaction();
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(work);
|
||||
startNewTransaction();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test listSite case sensitivity
|
||||
*/
|
||||
|
Reference in New Issue
Block a user