Skip Menu |

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

Report information
The Basics
Id: 33805
Status: resolved
Priority: 0/
Queue: VUser-Google-Apps

People
Owner: Nobody in particular
Requestors: cdr [...] stolaf.edu
Cc:
AdminCc:

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



Subject: bug in Google ProvisioningAPI/V2_0.pm
Date: Tue, 04 Mar 2008 11:46:33 -0600
To: bug-VUser-Google-Apps [...] rt.cpan.org
From: "Craig D. Rice" <cdr [...] stolaf.edu>
When V2_0.pm iterates through the links, four link{'rel'} elements are returned: next http://schemas.google.com/g/2005#feed http://schemas.google.com/g/2005#post self As written, $last_page is set to 1 if one of the link elements is not href. So, pass 1 sets $last_page to 0 and the $url to the URL on the next page of results. But eventually "self" is hit, which resets $last_page to 1, causing the "RetriveAllUsers" to prematurely bail. Diffs for a fix are: # diff /usr/lib/perl5/site_perl/5.8.8/VUser/Google/ProvisioningAPI/V2_0.pm /usr/local/sto/google/dist/VUser-Google-Apps-0.1.0/lib/VUser/Google/ProvisioningAPI/V2_0.pm 590d589 < $last_page = 1; 595,596c594,595 < # } else { < # $last_page = 1; --- Show quoted text
> } else { > $last_page = 1;
This results in $last_page set to 1 by default, then set to 0 if there are more results. Hope this helps, Craig -- Craig D. Rice Associate Director of Information Systems cdr@stolaf.edu Information and Instructional Technologies +1 507 786-3631 St. Olaf College +1 507 786-3096 FAX 1510 St. Olaf Avenue http://www.stolaf.edu/people/cdr Northfield, MN 55057-1097 USA
Fixed committed to CVS.