mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
89703: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 89689: Merged DEV to V4.2-BUG-FIX (4.2.4). 89618: MNT-12644: Inconsistent behaviour when synchronizing users with white space in CN. - In PersonWorker.process() in user name was omitted whitespace. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94635 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1730,7 +1730,8 @@ public class ChainingUserRegistrySynchronizer extends AbstractLifecycleBean
|
||||
{
|
||||
// Make a mutable copy of the person properties, since they get written back to by person service
|
||||
HashMap<QName, Serializable> personProperties = new HashMap<QName, Serializable>(person.getProperties());
|
||||
String personName = (String) personProperties.get(ContentModel.PROP_USERNAME);
|
||||
String personName = personProperties.get(ContentModel.PROP_USERNAME).toString().trim();
|
||||
personProperties.put(ContentModel.PROP_USERNAME, personName);
|
||||
// for invalid names will throw ConstraintException that will be catched by BatchProcessor$TxnCallback
|
||||
nameChecker.evaluate(personName);
|
||||
Set<String> zones = ChainingUserRegistrySynchronizer.this.authorityService
|
||||
|
Reference in New Issue
Block a user