LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

Open
#49,787 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
networking

Research direction

Start by reviewing the historical files cookiejar_datetime.patch and monkey_patch_cookielib_time2isoz.py, then trace the LWPCookieJar implementation and its expiration-date handling. Reproduce the failure on a 32-bit platform and add coverage showing that expirations of 2038 or greater are handled correctly.

Written by the indexing model from the issue text.

Description

3.10 3.8 (EOL) 3.9 (EOL) stdlib type-bug
BPO 5537
Nosy @abalkin, @vstinner, @pganssle
Files
  • cookiejar_datetime.patch
  • monkey_patch_cookielib_time2isoz.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2009-03-22.17:50:24.659>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms'
    updated_at = <Date 2020-11-04.02:07:42.993>
    user = 'https://bugs.python.org/hollec'
    

    bugs.python.org fields:

    activity = <Date 2020-11-04.02:07:42.993>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2009-03-22.17:50:24.659>
    creator = 'hollec'
    dependencies = []
    files = ['20785', '31370']
    hgrepos = []
    issue_num = 5537
    keywords = []
    message_count = 19.0
    messages = ['83979', '105416', '128765', '128781', '128788', '128789', '128791', '128792', '128793', '131603', '131604', '195609', '195610', '361962', '361972', '361978', '361980', '362130', '369219']
    nosy_count = 8.0
    nosy_names = ['jjlee', 'belopolsky', 'vstinner', 'hollec', 'Alex Quinn', 'python-dev', 'p-ganssle', 'nmacleod']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue5537'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.