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: "Black, Carey M." <>
  • To: Kumi Hagimoto <>, "" <>
  • Subject: RE: [grouper-users] Regex Validator ignored when testing via GSH
  • Date: Fri, 19 May 2017 14:19:23 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.138.9) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Ironport-phdr: 9a23:VjjVexcUw8w4cvbIMSQGHQy0lGMj4u6mDksu8pMizoh2WeGdxc26ZhCN2/xhgRfzUJnB7Loc0qyN4v+mAzVLvsrJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanb75/KBe7oR/PusULjodvKKk8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaLDMy7n3ZhdJsg6JauBKhpgJww4jIYIGOKfFyerrRcc4GSWZdW8pcUTFKDIGhYIsVF+cPPfhWoZThp1UArhW+CwujBOLzxTFHiXD7xrE60/0lHA3awAAsA8wCvXLJp9v1LqcSVuW1wbHGwTjea/NZwyvy6IvQfhs8v/yDR6hwftTRyEIyEA3JlFucopHiMjyO0uQCqXSU7+l6We6ylWIqpRp8oj+0xscxkIXGmJ8ayk3d+Ch/3Y07JsW4RVZlbdG+DJdcqiSXO5ZrTs8/Rmxotik3xqEatZO+cigF1psqywLaZvGCcYWE/g7sWP6MLTtmh39pYq+zihmz/ES61+HxWdO43VJXoiZdnNnDqHMA2wDW58WCSvZy4luu2TiK2gzN5exJIF07mK/UJpMhwLM9mJ8evljYESDtgkr7irKdeF8+9eiy8evnZ63rpp+COI9wjQHzKrwgl9C4D+gkLwQCRnWV9/yh2LH6+k32W6tFgucxkqnErJDVPsMbprO/AwBIyIoj8wy/DzC60NsGgXYHMFNFeBWBj4TzPFHOPez4DfO4g1Srkzdn3ezJPrrkApnVL3jDlqnufapl5kJC0gU/0c1T6pdJBr0cPf7+X0HxudPEAhMlNgG0zfjoBdph2o4bXG+CALOVP7/KvV+N/O0vIu2MZIEPuDb6Lvgo/+XhjXsjllABfqmlx4YbZG62E/l9JEWZemfsjs0fHmgXowoyVPbqh0GaUT5Pe3ayWLox5j4hCIKhEIfDXp6igKaY0CemBZ1ZeHpGCkuXHHfsdoWEQOsMaDmMLsN7kzwEU6ShRJE71RGoqgD616RrIvDK9SIFqJKwnORyss7OkBB61TV7DsGaz2bFG2Jpm2JORzY53aV4vUtVzU2O3q9+mOBRCdEV6v9UBENyf5HGyPFiBsq3RxnMZMyhSVC6T8+gDC1rCN893pVGN0lnHMi6gwqGwjGnGaQ9lrqXCYYy/76GmXX9OpAu5WzB0fxrpV0vScgLfUavnKNuvy2VTcadmUGQnKXsLP5H9CnW6SGOwXfY7xIQaxJ5TaiQBSNXXUDRt9msoxqaF7I=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Kumi,

I have not yet tried this feature out. ( I was actually thinking about rules
based on the stem where the group is being created as being the "better way
to do this kind of thing".)

However, I wonder:
Which grouper.properties file(s) did you put those settings into?
Where are you running the gsh shell from?


If you are running the gsh shell from inside the ...
/grouper.ui-2.3.0/dist/grouper/WEB-INF/bin then that sounds like a bug. (
or an unknown feature to you/me that gsh would ignore this setting for some
designed reason.)

If you are running the gsh shell from inside the ...
/grouper.apiBinary-2.3.0/bin/ then did you also configure the /
grouper.apiBinary-2.3.0/conf/grouper.properties with those settings?

Hope that helps.

--
Carey Matthew



-----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



Archive powered by MHonArc 2.6.19.

Top of Page