mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
ACE-979: WebDav MT RepositoryAuthenticationDao.getUserFolderLocation() seems to be no tenant-safe
- Fixed the solution and failed tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@111408 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -421,7 +421,15 @@ public class MultiTServiceImplTest
|
||||
createUser(USER1, TenantService.DEFAULT_DOMAIN, PASS);
|
||||
createTenant(DOMAIN);
|
||||
createUser(USER2, DOMAIN, PASS);
|
||||
createUser(USER3, nonExistentDomain, PASS);
|
||||
try
|
||||
{
|
||||
createUser(USER3, nonExistentDomain, PASS);
|
||||
fail("The string has a domain, but there is no such tenant");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Expected
|
||||
}
|
||||
String username3WithDomain = USER3 + TenantService.SEPARATOR + nonExistentDomain;
|
||||
try
|
||||
{
|
||||
@@ -458,7 +466,15 @@ public class MultiTServiceImplTest
|
||||
createUser(USER1, TenantService.DEFAULT_DOMAIN, PASS);
|
||||
createTenant(DOMAIN);
|
||||
createUser(USER2, DOMAIN, PASS);
|
||||
createUser(USER3, STRING, PASS);
|
||||
try
|
||||
{
|
||||
createUser(USER3, STRING, PASS);
|
||||
fail("The string has a domain, but there is no such tenant");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Expected
|
||||
}
|
||||
try
|
||||
{
|
||||
checkDomainWork(STRING_WITH_EXISTENT_DOMAIN, TenantService.DEFAULT_DOMAIN, USER1);
|
||||
|
Reference in New Issue
Block a user