Skip to Content.
Sympa Menu

grouper-users - [grouper-users] 'edit start and end date' with WS

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] 'edit start and end date' with WS


Chronological Thread 
  • From: Francesco Malvezzi <>
  • To: grouper-users <>
  • Subject: [grouper-users] 'edit start and end date' with WS
  • Date: Wed, 18 Apr 2012 14:48:20 +0200
  • Unimore-x-sa-score: -1.2

Hi all,

We are now planning to make a bulk edit of many members' start and end date.

While the procedure with gsh works:

GrouperSession.startRootSession();
subj = findSubject("a_member");
sess = GrouperSession.start(subj);
member = MemberFinder.findBySubject(sess, subj, false);
group = GroupFinder.findByName(sess, "a_stem:a_group");
membership = group.getImmediateMembership(Group.getDefaultList(),
member, true, true);
membership.setDisabledTime(GrouperUtil.toTimestamp("2014/11/02"));
membership.update();

We are not able to find a way to replicate with ws. At this moment the
stopper is the membership query.

Following the documentation at:
https://spaces.internet2.edu/display/Grouper/Get+Memberships

with:
curl -k -K .curlrc
cat .curlrc
url =
"https://grouper.unimore.it/grouper-ws/servicesRest/xml/v2_1_000/groups/a_stem:a_group/memberships";
user = "GrouperSystem:secret"

I always receive:

<WsGetMembershipsResults><resultMetadata><resultCode>SUCCESS</resultCode><resultMessage>Found
0 results involving 0 groups and 0
subjects</resultMessage><success>T</success></resultMetadata><responseMetadata><resultWarnings></resultWarnings><millis>999</millis><serverVersion>2.1.0</serverVersion></responseMetadata></WsGetMembershipsResults>

With a suspicious log entry:
2012-04-18 14:44:46,309: [TP-Processor12] INFO EventLog.info(141) - <
GrouperSystem - 155.185.253.69 > -
[8a84becf890547d6afa0287df65e75bd,'GrouperSystem','application']
session: start (1ms)
2012-04-18 14:44:46,312: [TP-Processor12] WARN
WsStemLookup.retrieveStemIfNeeded(193) - < GrouperSystem -
155.185.253.69 > - Invalid query: WsStemLookup[
stemFindResult=INVALID_QUERY]

So, my question is: which is the preferred path of WS queries to update
start and end date for a member?

Than: where could I look to fix the membership WS? (please note the
groups WS works fine).

Thank you for your time,

Francesco




Archive powered by MHonArc 2.6.16.

Top of Page