gdata-python-client (2.0.x and hg tip) has a flaw in parsing the gsessionid out
of redirect URIs due to a poor choice of regular expression used to match the
session id value.
This manifests as intermittent api call failures (complaining about exceeding
redirects_remaining) when performing calendar api calls. For some reason, this
seems more prone to fail when performing write operations than read operations.
The fix is as follows:
- m = re.compile('[\?\&]gsessionid=(\w*\-)').search(location)
+ m = re.compile('[\?\&]gsessionid=([^&]*)').search(location)
at all three locations that this code occurs in gdata/service.py
Original issue reported on code.google.com by m...@j.maxb.eu on 12 Dec 2011 at 10:29
Original issue reported on code.google.com by
m...@j.maxb.eu
on 12 Dec 2011 at 10:29