From 6f509c3f7f11fcd16cc7692aa8780f0808f7780a Mon Sep 17 00:00:00 2001 From: Andrei Rebegea Date: Thu, 15 Jun 2017 11:11:11 +0000 Subject: [PATCH] Merged 5.2.N (5.2.2) to HEAD (5.2) 136902 aepure: MNT-17199 - CSV user import: if password is left blank it should be randomly generated Modified UserCSVUploadPost behaviour to use an empty string for password creation instead of the user's first name. Modified RepositoryAuthenticationDao > createUser behaviour to treat the case when the password is an empty string or null. Added a Unit test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137534 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/web/scripts/person/UserCSVUploadPost.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/web/scripts/person/UserCSVUploadPost.java b/source/java/org/alfresco/repo/web/scripts/person/UserCSVUploadPost.java index 938aedf1d5..f8d988503c 100644 --- a/source/java/org/alfresco/repo/web/scripts/person/UserCSVUploadPost.java +++ b/source/java/org/alfresco/repo/web/scripts/person/UserCSVUploadPost.java @@ -527,7 +527,7 @@ public class UserCSVUploadPost extends DeclarativeWebScript // If no password was given, use their surname if (!user.containsKey(ContentModel.PROP_PASSWORD)) { - user.put(ContentModel.PROP_PASSWORD, user.get(ContentModel.PROP_LASTNAME)); + user.put(ContentModel.PROP_PASSWORD, ""); } // Skip any user who looks like an example file heading