Skip to Content.
Sympa Menu

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

Subject: Grouper Users - Open Discussion List

List archive

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


Chronological Thread 
  • From: Kumi Hagimoto <>
  • To:
  • Subject: [grouper-users] Regex Validator ignored when testing via GSH
  • Date: Thu, 18 May 2017 20:26:34 +0000 (UTC)
  • Ironport-phdr: 9a23:jqgKDRyWq6Nppp/XCy+O+j09IxM/srCxBDY+r6Qd1OMeIJqq85mqBkHD//Il1AaPBtSErasVwLOK7ejJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMhjexe65+IRG5oQnMucQbgJZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxDvlCoKOTw0/W/OhsBska5QvRatqhN7zoLRZoyeKfhwcb7Hfd4CW2RPXttfWC5CDIyzc4QBAO0PM+hDoonhulUDtweyCBOwCO/xzDJDm3/43bc90+QkCQzI2REgH9cPsH/Jrtv6LqgSUeGwzKnP0TXDaO5d1DD+6IjVdxAhoOuAXbJqfsreyEkvEgTFjkmXqYH+ODOVzPoCs2ec7+pmTuKvl3Qoqx1vrTS12Mgjl5TJi5sTx1vZ9it52J44KcOkREN5e9KpEptduzuHO4Z3Tc4uWX9ktDgnxrAApJW1ZjIFyI49yB7ac/GHc5aH4hbkVOuJJTd4hWlleK6khxqs60Sgy+v8VtWq31ZQqCpKjMXMum4X2xPN98eHV+Nx/kan2TmRywDe8v9ILVw2mKbBKZMswqQ8mocSvEnMBCP6hlv6gLKOekUh4Oeo6uDnYrv8pp+bMo95khn+Mrk1lcykAeU4NxAOUHKA9OS90r3j4VP2QK9MjvIojqnVrorWKtoGqa6kGwNVyJos6w6jDze619QVhXYHLEhCeBKal4jmJUvOLOnlDfeknVusiixryuvCPr3gGZXNMmPDnKn7cbZ87U5c1BQ8zcpZ551KFrENPuj/VVHsu9zFXVcFNFm72eH6ENhnk54FVHiUKq6fLK7It1KUvKQiL/TfSpUSvWPeNv0kr97ngn48nkMaNf2qwJ4WLnCxEfVjJFmeSX32j9gGF3wWtxYzCuHmlQvRAnZoe3+uUvdktXkAA4W8ANKfF40=

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