]
Marek Posolda updated GTNPORTAL-2847:
-------------------------------------
Attachment: validation-screenshot.png
GroupManagement is not using UserConfigurableValidator for validating
usernames
-------------------------------------------------------------------------------
Key: GTNPORTAL-2847
URL:
https://issues.jboss.org/browse/GTNPORTAL-2847
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.5.0.Final
Reporter: Marek Posolda
Assignee: Marek Posolda
Fix For: 3.6.0.Final
Attachments: validation-screenshot.png
Steps to reproduce:
1) I want custom validation for username fields. So I added this to
GATEIN_HOME/standalone/configuration/gatein/configuration.properties:
gatein.validators.username.regexp=^[A-Za-z0-9._%+-]+$
gatein.validators.username.format.message=Username could contains only lowercase or
uppercase letters, numbers, dots and percentage characters
2) Start GateIn
3) Login as root and create user "John_1_Wood" in "New Staff"
4) Now I want to add this user to group "/platform/guests". But it's not
possible because of validations. (See attached screenshot)
There are two issues here:
a) GroupManagement is not using UserConfigurableValidator, so it treats
"John_1_Wood" as invalid username. But it should permit it.
b) The error message is invalid. It should use message for format configured by user
(same message like the one used on New Staff page).
So the message should be: The field "User Name" must match the format
"Username could contains only lowercase or uppercase letters, numbers, dots and
percentage characters".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: