GNOME Bugzilla – Bug 301989
Unable to log into flickr pro account
Last modified: 2009-07-27 13:19:43 UTC
Distribution/Version: Ubuntu/5.04 1. Upgrade to flickr pro account. 2. Try to export photos through f-spot to flickr. 3. See traffic like <?xml version="1.0" encoding="utf-8" ?> <user> .<username>xxx</username> .<status> ..<pro>1</pro> .</status> .<transfer> ..<limit>2147483648</limit> ..<used>0</used> .</transfer> </user> 4. Get error message on console like System.OverflowException: Number overflow. in <0x001c3> System.Int32:Parse (string) in [0x00109] (at /build/buildd/f-spot-0.0.12/src/FlickrRemote.cs:139) FlickrRemote:Login (string,string)
Created attachment 45680 [details] [review] Change int to long This changes the variables limit and used from int to long (unsigned int would be too close to the current limit of 2GB for comfort). The patch also fixes what looks like a typo in setting "used" instead of "limit" in one place.
the overflow was already fixed in CVS, I've added the fix for the the c&p error of limit/used. Thanks for the patch!