Skip to Content.
Sympa Menu

grouper-users - Getting stale group attributes with getGrouperPrivilegesLiteWs

Subject: Grouper Users - Open Discussion List

List archive

Getting stale group attributes with getGrouperPrivilegesLiteWs


Chronological Thread 
  • From: Paul Gazda <>
  • To: "" <>
  • Subject: Getting stale group attributes with getGrouperPrivilegesLiteWs
  • Date: Mon, 31 Aug 2009 11:39:06 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

When I retrieve all the groups a subject has admin privilege on using GrouperClient and getGrouperPrivilegesLiteWs, I am getting stale values for the attributes of the groups returned. The sequence below demonstrates how I changed the description of group ENT:pag-test from “desc 3” to “desc 4”. When the group is queried using getGrouperPrivilegesLiteWs, the old value of “desc 3” is returned. When queried with findGroupsWs, the new value of “desc 4” is retrieved.

 

Is there caching of group attributes happening with getGrouperPrivilegesLiteWs? I’ve tried to find something about this in this list’s archives, but could not.

 

(initial description value “desc 3”)

java -jar grouperClient.jar --operation=findGroupsWs --queryFilterType=FIND_BY_GROUP_NAME_EXACT --groupName=ENT:pag-test

Index 0, name: ENT:pag-test, displayName: ENT:pag-test, extension: pag-test, displayExtension: pag-test, description: desc 3

 

(change description to “desc 4”)

java -jar grouperClient.jar --operation=groupSaveWs --name=ENT:pag-test --description="desc 4"

Success: T: code: SUCCESS_UPDATED: ENT:pag-test

 

(retrieve with getGrouperPrivilegesLiteWs – shows old “desc 3” value)

java -jar grouperClient.jar --operation=getGrouperPrivilegesLiteWs --privilegeType=access --privilegeName=admin --subjectId=testSubject

Index 0, success: T, code: SUCCESS, group: ENT:pag-test, subject: testSubject, description: desc 3, access: admin

 

(retrieve with findGroupsWs – shows new “desc 4” value)

java -jar grouperClient.jar --operation=findGroupsWs --queryFilterType=FIND_BY_GROUP_NAME_EXACT --groupName=ENT:pag-test                              Index 0, name: ENT:pag-test, displayName: ENT:pag-test, extension: pag-test, displayExtension: pag-test, description: desc 4

 

(retrieve again with getGrouperPrivilegesLiteWs – still shows old “desc 3” value)

java -jar grouperClient.jar --operation=getGrouperPrivilegesLiteWs --privilegeType=access --privilegeName=admin --subjectId= testSubject

Index 0, success: T, code: SUCCESS, group: ENT:pag-test, subject: testSubject, description: desc 3, access: admin

 

Paul Gazda

 

 




Archive powered by MHonArc 2.6.16.

Top of Page