python / python/cpython

http.cookies | RFC2109 is obsolete.

Open
#92,012 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

https://github.com/python/cpython/blob/37c6db60f9ac62b8a80bf04a8146274756ee0da0/Lib/http/cookies.py#L262-L285

RFC2109 is obsolete.
RFC6265 has only the following headers
Expires
Max-Age
Domain
Path
Secure
HttpOnly

from http.cookies import SimpleCookie
rawdata = 'version=4'
cookie = SimpleCookie()
import http.cookies
cookie.load(rawdata)
print(cookie) # empty ;  expected {'version': '4'}

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.

Research direction

Start with Lib/http/cookies.py lines 262-285 and reproduce the provided SimpleCookie example. Compare the parser behavior with the RFC6265 attributes listed in the issue; done means the input is handled as expected without relying on obsolete RFC2109 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.