[New-bugs-announce] [issue23888] Fixing fractional expiry time bug in cookiejar

ssh report at bugs.python.org
Wed Apr 8 16:17:39 CEST 2015

New submission from ssh:

If the FileCookieJar reads a cookie whose expiry time is a decimal fraction, it crashes.

Chrome extensions "cookies.txt" and "EdiThisCookie" export the expiry time as decimal fractions. This is accepted by wget and curl, but not by the FileCookieJar which ends up crashing.

I made a StackOverflow question checking if fractional decimal expiry times were even allowed (if it was a bug in the extensions), but didn't get a response: https://stackoverflow.com/questions/29502672/can-the-cookie-expires-field-be-a-decimal-value

At any rate, this patch should make the library more robust.

components: Library (Lib)
files: mywork.patch
keywords: patch
messages: 240265
nosy: serhiy.storchaka, ssh
priority: normal
severity: normal
status: open
title: Fixing fractional expiry time bug in cookiejar
type: crash
versions: Python 3.5
Added file: http://bugs.python.org/file38864/mywork.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list