Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Regex Validator ignored when testing via GSH

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Regex Validator ignored when testing via GSH


Chronological Thread 
  • From: "Hagimoto, Kumi" <>
  • To: "Hyzer, Chris" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Regex Validator ignored when testing via GSH
  • Date: Mon, 22 May 2017 14:59:47 +0000
  • Accept-language: en-US
  • Authentication-results: isc.upenn.edu; dkim=none (message not signed) header.d=none;isc.upenn.edu; dmarc=none action=none header.from=oregonstate.edu;
  • Ironport-phdr: 9a23:EwZOBBMRfB+/1iVwU5wl6mtUPXoX/o7sNwtQ0KIMzox0I/7zrarrMEGX3/hxlliBBdydsKMbzbCJ+PC5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oMhm7rwrdu8oLjYB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVRnlgzoFOTEk6mHaksx+grxGrhK9qRJxwIDUb4OUNPVicazQZskVSXZEXstLSyBNHoGxYo0SBOQBJ+ZYqIz9qkMAoRW8HwasC+LvyjpPhn/q2q02y/kqHwTb3AwlHtICvmnfodLwOqcPVOC1zbPEwzfZYPNZ2Df97Y/IcgwmofyXWrJwa9TeyUYoFwPDlVWQtZbqPy+L2egXrWeU8vdgWPuphmU6qA9xuiCiytowhoTGnI4YxVLJ+T93zYs6P9G0VVB3bN68HJdOtiyWK5Z6T8Y/T250pCo3z7ILtJ6ncCQWzZko2gLTZv2bf4WN7R/vSfidLix9iX57Yr2zmQ29/E26xeD9SMa03lNHoypKn9nCrH8A0QHY5NKdRftn5Eih3C6C1wDN5eFAJkA5jbLVJoImzLIsi5YfqFnOES3olEnvi6+ZbVsr9vKv6+T6frXpvZicN5Jyig7jKKgugta/AeMkMgcQQ2eb5eW81Lrl/UHjR7VKk+E2kq3esJDdJsQXvLK2AwhQ0oo76ha/CSmp0MgAkHUaMF5IdwiLgofrNl3ULv31Au2zj0mynDpr3/zGO6fuApTJLnjNirfherN95lZZxgouyNBf5ohYBLMbL/L8W0/xsdvYDgM+MwGvxObnEsty1owZWWKJGa+ZLLndsUOW6e41PeaDeZIVtC7nK/c5//7ukWM5mVgFcKmmx5sXb224Hux4LEWDeHbsn8wBHnkQvgolV+HqjFyCUSVPZ3apQa4w/DA7CIS6DYjdXICthqKO3DulEpFMeG9JF02MQj/UcNDOe+YeZTjWauRhiD0fH/D1ToQhxAOjrif70LEhM/LZ/CteuJ7+gotb/erWwFsS/DN1CsOB1CXFbHxxnylAExwr2aE5gUVyy1KEza9QhOZVGttV/O9ATgp8OJLBmb8pQ+vuUx7MK4/aAG2tRc+rVGk8
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi Chris,

I applied the patch, and it’s all working now.  Thanks for the quick fix!

Kumi

On May 21, 2017, at 11:12 PM, Hyzer, Chris <> wrote:

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: [] 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




Archive powered by MHonArc 2.6.19.

Top of Page