This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Scott.Wimer
Recipients Scott.Wimer
Date 2011-05-22.02:58:43
SpamBayes Score 5.7296e-05
Marked as misclassified No
Message-id <1306033124.86.0.836605602237.issue12144@psf.upfronthosting.co.za>
In-reply-to
Content
When cookielib.CookieJar().make_cookies is used to extract cookies from a urllib2 response, it crashes when it encounters a 'Set-Cookie' header entry that has an 'expires' attribute.

This crash occurs because the expires time is evaluated against the '_now' attribute of the CookieJar instance -- an attribute which is not set unless CookieJar().extract_cookies() was called previously.

Attached is a script that triggers this bug.
History
Date User Action Args
2011-05-22 02:58:45Scott.Wimersetrecipients: + Scott.Wimer
2011-05-22 02:58:44Scott.Wimersetmessageid: <1306033124.86.0.836605602237.issue12144@psf.upfronthosting.co.za>
2011-05-22 02:58:44Scott.Wimerlinkissue12144 messages
2011-05-22 02:58:44Scott.Wimercreate