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: "Black, Carey M." <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Regex Validator ignored when testing via GSH
  • Date: Fri, 19 May 2017 15:49:02 +0000
  • Accept-language: en-US
  • Authentication-results: osu.edu; dkim=none (message not signed) header.d=none;osu.edu; dmarc=none action=none header.from=oregonstate.edu;
  • Ironport-phdr: 9a23:vkFNoxD7yS32BDwd28uDUyQJP3N1i/DPJgcQr6AfoPdwSP37p8SwAkXT6L1XgUPTWs2DsrQf2rWQ6fmrCDdIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbF/IA+ooQnMucUbhYVvIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1kyoMKSI3/3/LhcxxlKJboQyupxpjw47PfYqZMONycr7Bcd8GQGZMWNtaWS5cDYOmd4YBD/QPM/tEr4fzpFUOoxmxBQiwC+zg0TJHnGP63agg3ug9DQ3L3gotFM8OvnTOq9X1Mb8fXe63wqbSwjXDbvZW2TDh6IjPahwqvPSCXa91ccrQx0UkCgTIgFCNqYzgPjOZzOYDvHKU7+phUOKvjHInqwZqrzio3McjlIbJhoUTylDf6SV22po1KsOiREFlfNGkDYJduieHPIV1WsMvW39ktzwmxrEbvJO3YTUGxIkiyh7RZPGLb5SE7xftVOmPLjp1gHdodbe9ihqs/0is0vPwW8io3FpXqydJj8XDumwI2hHc6sWLVudx80K81jqT1g3f9uRJLE8omafUNpEsx7w9mocNvkvdGyL5gkT7jKGIeUgh5+Sn9+TqYrvgq5SBLYF7kBv+Pb4rmsGnAeQ3LAwOX2+D9OqkyLDt+lH1TbtTgvM4lafUvonWJcMAqaGnGQNV1Zsj6wqkADehzdQYm2QIIEhdeBKdiIjpJ0/BL+zkDfe+hFSsli1nx/fbPr39BpXNKX/DkLT7cblh7E5czRI/zdFZ551KFrEMOOz/VVXtuNDFCxI1LhG4z/viBdVz2Y4SRX6DD6qXMKzMvlKF4uciLuyOaYMLtjbxM/0l6OTvjX89l18dZ66p3Z4PZX69A/RmJkSZbWDujNgbHmcKvw8+TOv2iF2FSjNTYGyyULwz5jE8DoKmFpvDSZqxgLOfxiu0AIBZZn1eBlCWDXjob5mEW+sLaC+KLc9hiDsEVaW5S4A/zxGirRL6y6F5IerO4S0Vrpbj1Nlu5+3PjhE+6yZ4D8Wb02GRUW50hGUISCEq3Kxhu0By1EqM0bUry8BfQJZ54/pCUUNyHpfGwv0yLpa4ElbLet6CSxD/GI6OBiosCN893oldTVx6HoDorhnM3i+tH7hR35+WAZ1+uvb/wn3wYeZ0xHfD07Ump148T8RIM3a6j7JysQXfGtiawA2ii6+2ePFEj2b2/2CZwD/L5RkAXQ==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi Carey,

At GSH startup, it lists where it’s reading grouper.properties from, and that is the file that has the regex validator.  Testing the additional hook defined in there via GSH works, so I’m sure it’s reading the correct file.    The grouper.properties files for ui and api are identical although they’re running on a different server.

Thanks!
Kumi

On May 19, 2017, at 7:19 AM, Black, Carey M. <> wrote:

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