SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

Provisioning api bugs: addOwnerToGroup method fails silently + isOwner method returns wrong answer #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Problem 1. Using the provisioning api, call the method addOwnerToGroup 
with a given group id, and a user id for a user that is NOT currently a 
member of the group.

What is the expected output? What do you see instead?
At this point, one should get some kind of error from Google given that 
addOwnerToGroup is not supposed to work for users which are not already 
members of a group (according to Anirudh, Google Apps help forum). Indeed, 
I can confirm that this call actually fails to produce the expected 
results*. Instead, the call fails silently. 

problem 2. After the first programmatic call is done according to 1) 
above, my code calls isOwner() given the corresponding group and user that 
was used before, to ensure that the owner had in fact been added. This 
call returns TRUE, while it should return false. 

*NOTE: I confirmed that the user had actually NOT been made an owner (not 
even a member) of the group, by waiting 15+ minutes and checking for the 
group members in the GUI. 

What version of the product are you using? On what operating system?
I am using version 33 of the Java client apis. The OS is Red Hat Linux.

Original issue reported on code.google.com by pgoldw...@northwestern.edu on 22 Sep 2009 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by anirudhd...@gmail.com on 29 Sep 2009 at 6:03