Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Query the memberships with rest (simple)

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Query the memberships with rest (simple)


Chronological Thread 
  • From: Francesco Malvezzi <>
  • To:
  • Subject: [grouper-users] Query the memberships with rest (simple)
  • Date: Tue, 07 Dec 2010 13:43:21 +0100

sorry to bother the group again (and it's not going to be the last time,
unfortunately).

I'm not able to query the membership of a certain user throught the
simple-rest.

If I run
curl -v -K .curlrc

with:
$ cat .curlrc
url =
"https://grouper.unimore.it/grouper-ws/servicesRest/xml/v1_6_002/groups/unimore:unimore/members";
user = "GrouperSystem:secret"

I obtain:
</resultMessage><success>T</success></resultMetadata><responseMetadata><resultWarnings></resultWarnings><millis>110</millis><serverVersion>1.6.2</serverVersion></responseMetadata><wsGroup><extension>unimore</extension><displayExtension>unimore</displayExtension><displayName>unimore:unimore</displayName><name>unimore:unimore</name><uuid>fe6bb207164f44d09f23ac480aaa0f46</uuid></wsGroup><wsSubjects><WsSubject><resultCode>SUCCESS</resultCode><success>T</success><id>malvezzi</id><sourceId>unimore</sourceId></WsSubject></wsSubjects></WsGetMembersLiteResult>

(i.e. group unimore:unimore has as member malvezzi)

but then (path copied from test named WsSampleGetMembershipsRestLite2)
$ cat .curlrc
url =
"https://grouper.unimore.it/grouper-ws/servicesRest/xml/v1_6_002/subjects/malvezzi/memberships";
user = "GrouperSystem:secret"

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

and in the logs:
==> grouper_error.log <==
2010-12-07 13:16:59,235: [TP-Processor2] INFO EventLog.info(141) - <
GrouperSystem - 155.185.0.132 > -
[0c963bd9a9a543cfa19d0603bbf38e6c,'GrouperSystem','application']
session: start (4ms)
2010-12-07 13:16:59,237: [TP-Processor2] INFO EventLog.info(141) - <
GrouperSystem - 155.185.0.132 > -
[88e096d7e1c1400fa6c2fd9aad768ba1,'GrouperSystem','application']
session: start (0ms)
2010-12-07 13:16:59,239: [TP-Processor2] INFO EventLog.info(141) - <
GrouperSystem - 155.185.0.132 > -
[39994249b3f34398acdc651c6437fae9,'GrouperSystem','application']
session: start (1ms)
2010-12-07 13:16:59,246: [TP-Processor2] WARN
WsStemLookup.retrieveStemIfNeeded(193) - < GrouperSystem - 155.185.0.132
> - Invalid query: WsStemLookup[
stemFindResult=INVALID_QUERY]

grouper.clientBinary works (from localhost):

$ java -jar grouperClient.jar --operation=getMembershipsWs
--subjectIds=malvezzi
Index: 0: group: unimore:cesia, subject: malvezzi, list: members, type:
immediate, enabled: T
Index: 1: group: unimore:unimore, subject: malvezzi, list: members,
type: immediate, enabled: T

but it appears to send a POST and not a GET.

What am I missing?

thank,

Francesco




Archive powered by MHonArc 2.6.16.

Top of Page