Hi Justin,

I did as you suggested
(*SLING-1557<https://issues.apache.org/jira/browse/SLING-1557>
)*, let me know when you managed to fix it so that I can test it and give my
feedback.

Thanks again!

Davide

On Tue, Jun 15, 2010 at 6:29 PM, Justin Edelson <[email protected]>wrote:

> Please submit a JIRA issue for this. I'd thought about implementing it a
> few weeks back, but it is hard to judge the value of a feature like this
> without feedback.
>
> A patch would be even better :)
>
> Justin
>
>
> On Jun 15, 2010, at 12:10 PM, Davide Maestroni <[email protected]>
> wrote:
>
>  Hi Justin,
>>
>> thank you very much for your reply. So, I guess the only way to get the
>> list of the members of a group is to implement a servlet calling the
>> Jackrabbit APIs.
>> Anyway I believe that it could be a very useful feature. If one want to
>> implement a remote service to manage users, there is no other way to know
>> the composition of the group than to ask the repository.
>>
>> Best Regards,
>>
>> Davide
>>
>>
>> On Tue, Jun 15, 2010 at 4:31 PM, Justin Edelson <[email protected]>
>> wrote:
>> AFAIK, there's no support for listing group members. When you request a
>> group resource, all you get back is any properties defined on that group.
>>
>> Justin
>>
>> Davide Maestroni wrote:
>> Hi all,
>>
>> I've got an issue in listing the members added to a group using the
>> userManager service.
>> I've followed the instructions shown in
>>
>> http://sling.apache.org/site/managing-users-and-groups-jackrabbitusermanager.html
>> .
>> As per my understanding to get the list of the members of one group I just
>> need to call "curl
>> http://localhost:8080/sling/system/userManager/group/newGroup.tidy.1.json
>> <
>> http://localhost:8080/system/userManager/group/administrators.tidy.1.json
>> >",
>>
>> but what I get in the reply is just an empty JSON object (i.e. "{}").
>>
>> Let me describe you all the steps:
>>
>> First I created a new user: curl -F:name=newUser -Fpwd=password
>> -FpwdConfirm=password
>> http://localhost:8080/sling/system/userManager/user.create.html<
>> http://localhost:8080/system/userManager/user.create.html>
>>
>> Then I created a new group: curl -F:name=newGroup
>> http://localhost:8080/sling/system/userManager/group.create.html<
>> http://localhost:8080/system/userManager/group.create.html>
>>
>>  Finally I added the "newUser" user to the just created group: curl -F
>> ":member=/system/userManager/user/newUser"
>> http://localhost:8080/sling/system/userManager/group/newGroup.update.html
>> <http://localhost:8080/system/userManager/group/mygroup.update.html>
>>
>>
>> All the above requests returned successfully, but when I try to retrieve
>> the
>> list of the members of the "newGroup" group (as mentioned above) I just
>> got
>> an empty object.
>> Is this the correct way to list the group members: curl
>> http://localhost:8080/sling/system/userManager/group/newGroup.tidy.1.json
>> <
>> http://localhost:8080/system/userManager/group/administrators.tidy.1.json
>> >?
>>
>> Am I missing something in the modification of the group?
>>
>> Thanks in advance,
>>
>> Davide
>>
>>
>>
>>
>>

Reply via email to