grouper-users - RE: [grouper-users] Regex Validator ignored when testing via GSH
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: Kumi Hagimoto <>, "" <>
- Subject: RE: [grouper-users] Regex Validator ignored when testing via GSH
- Date: Mon, 22 May 2017 06:12:01 +0000
- Accept-language: en-US
- Authentication-results: oregonstate.edu; dkim=none (message not signed) header.d=none;oregonstate.edu; dmarc=none action=none header.from=isc.upenn.edu;
- Ironport-phdr: 9a23:qxJd4RSg5orGuy5a4ObRXr+T/9psv+yvbD5Q0YIujvd0So/mwa6zbBGN2/xhgRfzUJnB7Loc0qyN4v+mAzJLv8/JmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanb75/KBe7oR/PusQXjodvK7s9wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaLDMy7n3ZhdJsg6JauBKhpgJww4jIYIGOKfFyerrRcc4GSWZdW8pcUTFKDIGhYIsVF+cPPfhWoZThp1UArhW+CwujBOLzxTFHiXD7xrE60/09HQ3awAAsA8wCvXLJp9v1LqcSVuW1wbHGwTvBb/JX2Cny6JLQfhs8v/yMXahwccvKyUUhCgjIiVCQppDlPzKV1+UCrXKb4vFhVeK0l2ErsRxxoiCxyccqjInFnJwaxU3Z9Shgxos+ON62SFZjbNK6CpRcqzyWOo5rTs8/Xm1lvSg6x7IatZKneSUHyoooyhHfZvGCdoWE/A7vWeiJLTtlin9pZKizihKv/US61OHwS8253ExXoidHk9TBsG0G2QbJ5cidUPR9+1+s2TaR2ADX7eFJOVg6mLbcJZI93LI8j4QevkbeEiPvn0X5l7GZel8j+ui19+ToebLmpoKaN4BpkA3+Kr4umsujAesmLgcOQ2mb+eO61LH5+k35XalKjvkxkqnes5DWP9gUpqm8AwNN04Yj7QiwDyu+3dgGh3YLME9JdReag4T0Jl3DJf74APijj1iwlTpmxe7JM7LhD5jIK3XPjqvtcLhl505Z0gUzzNRf55xOCrEGJfL+Qkrxu8DYDh45Mg273fznBc581oMFRW2DGLKZMLvMvl+O4OIjOfeDa5IIuDrlMfgq++bujWMlmV8aZaSp0oEXaHelHvR+PUqZe2PggsoaEWgUpAo+V/fniFmDUT5Ie3ayRLww6is6CIKgEYfMWJqtgLqf0yenAJFafH5JBU2RESSgS4LReOoJaWqyK8BglzsYUvD1SJIk1FeuvQD7zr17KcLT4CAXspT4yNFp6qvemQxksXQ+AN6aznmAVSRphW4SXBc32rxyu0pw1g3F3KRlybQMGsZU+utESEInLpPG1MR7Dcz/QATMYo3PRVq7FIaIGzY0G5gR0s0DeQI1MNW4jwuJl36vCL8EhbGRLJ0v+eTBx3X3IYBwx2uQh/pptEUvXsYabT7uvaV47QWGQteRy0g=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
This as a bug fixed in api patch #67.
If you don't want to apply the patch you can probably register the hook
directly in the grouper.properties (append to current hooks if you have any)
hooks.group.class=edu.internet2.middleware.grouper.hooks.examples.GroupAttributeNameValidationHook
Thanks
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Kumi Hagimoto
Sent: Thursday, May 18, 2017 4:27 PM
To:
Subject: [grouper-users] Regex Validator ignored when testing via GSH
Hello,
I have the following regex validator in grouper.properties:
group.attribute.validator.attributeName.0=extension
group.attribute.validator.regex.0=^[a-z0-9\.-]+$
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.
Thanks,
Kumi
- [grouper-users] Regex Validator ignored when testing via GSH, Kumi Hagimoto, 05/18/2017
- RE: [grouper-users] Regex Validator ignored when testing via GSH, Black, Carey M., 05/19/2017
- Re: [grouper-users] Regex Validator ignored when testing via GSH, Hagimoto, Kumi, 05/19/2017
- RE: [grouper-users] Regex Validator ignored when testing via GSH, Hyzer, Chris, 05/22/2017
- Re: [grouper-users] Regex Validator ignored when testing via GSH, Hagimoto, Kumi, 05/22/2017
- RE: [grouper-users] Regex Validator ignored when testing via GSH, Black, Carey M., 05/19/2017
Archive powered by MHonArc 2.6.19.