Skip Menu |

This queue is for tickets about the REST-Google-Apps-Provisioning CPAN distribution.

Report information
The Basics
Id: 71989
Status: resolved
Priority: 0/
Queue: REST-Google-Apps-Provisioning

People
Owner: sschneid [...] gmail.com
Requestors: EVO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: getAllGroups() fails if only one group exists
Hello, If only one group exists, the getAllGroups() mis-parses the API response. Running Data::Dumper against the responses, it looks like when more than one group exists, $result->{'entry'} contains a reference to a hash of group_id => group_info, but if only one group exists, the intermediate level of hashing is skipped and $result->{'entry'} contains a reference directly to that single group's definition. In particular, sub getGroupMembers needs the same kind of check for "if ( $result->{'entry'}-> {'apps:property'} )" that is used in getGroupMembers() to handle returns of a single item. -Simon
https://github.com/sschneid/perl-rest-google- apps/commit/c1d468f406c519d1711a34fe520feb76e2310117 Fixed in 1.1.10-dev