From: email@example.com firstname.lastname@example.org On Behalf Of Kumi Hagimoto
Sent: Thursday, May 18, 2017 4:27 PM
Subject: [grouper-users] Regex Validator ignored when testing via GSH
I have the following regex validator in grouper.properties:
group.attribute.validator.vetoMessage.0=Group ID '$attributeValue$' is invalid
since it must contain only lowercase letters, numbers, hyphens, and periods
It works in UI and WS, but not when I test it via GSH. I do have an extra
group hook defined, but that's true for UI/WS as well. (And GSH does honor
that extra hook..)
If I try to add a group with extension "TOG1" via UI, I get an error message:
"Group ID 'TOG1' is invalid since it must contain only lowercase letters,
numbers, hyphens, and periods" which is expected. But I can do
addGroup("osu:org:sg:to","TOG1","Test Org Group 1"); via GSH and it will add
the group - no error.
I'm not sure what I'm doing wrong... any ideas? I use GSH to test thing
sometimes, so it would be nice if I could get the same results.