mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
REPO-1752: Create person with long id returns 500
- Changed validation message. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -86,6 +86,7 @@ public class PeopleImpl implements People
|
||||
NamespaceService.CONTENT_MODEL_1_0_URI);
|
||||
private static final List<QName> EXCLUDED_ASPECTS = Arrays.asList();
|
||||
private static final List<QName> EXCLUDED_PROPS = Arrays.asList();
|
||||
private static final int USERNAME_MAXLENGTH = 100;
|
||||
protected Nodes nodes;
|
||||
protected Sites sites;
|
||||
|
||||
@@ -523,7 +524,7 @@ public class PeopleImpl implements People
|
||||
{
|
||||
if (username.length() > 100)
|
||||
{
|
||||
throw new InvalidArgumentException("Username is too long.");
|
||||
throw new InvalidArgumentException("Username exceeds max length of " + USERNAME_MAXLENGTH + " characters.");
|
||||
}
|
||||
|
||||
if (username.indexOf('/') != -1)
|
||||
|
Reference in New Issue
Block a user