REPO-3743: Prevent the creation of built-in authorities, like user SYSTEM, GUEST (#276)

* REPO-3743: Prevent the creation of built-in authorities, like user SYSTEM, GUEST.

* REPO-3743: added a new test and fix the tests that try to create system user.

* REPO-3473: I fix the tests ussing adminUser authentication.

* REPO-3743: Refactor tests authenticate as admin user.

* REPO-3743: fix the tests that used System user

* REPO-3743 clean up system authentication.

* REPO-3743: clean up system authentication

* REPO-3743: changes no permossions

* [maven-release-plugin] prepare release alfresco-repository-7.32-REPO-3743_System

* [maven-release-plugin] prepare for next development iteration

* REPO-3743: change runAsSystem and add setFullAdminAuthentication.

* [maven-release-plugin] prepare release alfresco-repository-7.32-REPO-3743_SystemUser

* [maven-release-plugin] prepare for next development iteration

* REPO-3743: added dependency for branch released data-model

* REPO-3743: added admin user as full authenticated user.

* [maven-release-plugin] prepare release alfresco-repository-REPO-3743-System-clean

* [maven-release-plugin] prepare for next development iteration

* REPO-3743: change the data-model version

* REPO-3743: change dataModel version

* [maven-release-plugin] prepare release alfresco-repository-REPO-3743-System-clean2

* [maven-release-plugin] prepare for next development iteration

* REPO-3743: changes after review.
This commit is contained in:
anechifor
2018-11-27 11:33:51 +02:00
committed by GitHub
parent 56ba5fc1a6
commit 10c2f54c23
35 changed files with 111 additions and 49 deletions

View File

@@ -667,7 +667,7 @@ public class ContentDiskDriver extends AlfrescoTxDiskDriver implements DiskInter
// Use the system user as the authenticated context for the filesystem initialization
AuthenticationUtil.pushAuthentication();
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());
// Start the transaction