mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged V3.1 to HEAD
13256: Fix ETHREEOH-1221 Hard-coded use of "admin" username ___________________________________________________________________ Modified: svn:mergeinfo Merged /alfresco/BRANCHES/V3.1:r13256 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,7 @@ package org.alfresco.repo.web.scripts;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.service.cmr.security.AuthenticationService;
|
||||
import org.alfresco.service.cmr.security.PersonService;
|
||||
import org.alfresco.util.PropertyMap;
|
||||
@@ -117,9 +118,9 @@ public class LoginTest extends BaseWebScriptTest
|
||||
String ticketURL = "/api/login/ticket/"+ticket;
|
||||
|
||||
/**
|
||||
* Negative test - validate as "admin" - should fail with a 404
|
||||
* Negative test - validate as AuthenticationUtil.getAdminUserName() - should fail with a 404
|
||||
*/
|
||||
setDefaultRunAs("admin");
|
||||
setDefaultRunAs(AuthenticationUtil.getAdminUserName());
|
||||
sendRequest(new GetRequest(ticketURL), Status.STATUS_NOT_FOUND);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user