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.

classification
Title: ignore errors in SimpleCookie
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: andrei.avk, aviramha, python-dev
Priority: normal Keywords: patch

Created on 2020-03-18 12:06 by aviramha, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 19058 open python-dev, 2020-03-18 12:22
Messages (3)
msg364514 - (view) Author: Aviram (aviramha) * Date: 2020-03-18 12:06
SimpleCookie (http/cookies.py) load method fails if one of the has an issue.
In real life scenarios, we want to be tolerant toward faulty cookies, and just ignore those. 
My suggestion is to add ignore_errors keyword argument to the load method of SimpleCookie, skipping invalid Morsels.
msg379533 - (view) Author: Aviram (aviramha) * Date: 2020-10-24 18:16
Hi all,
still waiting for review.
msg398375 - (view) Author: Andrei Kulakov (andrei.avk) * (Python triager) Date: 2021-07-28 13:17
Aviram: see issue https://bugs.python.org/issue17340 , there is a lot of old discussions along the same lines.
History
Date User Action Args
2022-04-11 14:59:28adminsetgithub: 84182
2022-03-14 11:44:39BTaskayasetnosy: - BTaskaya
2022-03-14 11:44:22BTaskayasetpull_requests: - pull_request29968
2022-03-14 11:38:23BTaskayasetnosy: + BTaskaya
pull_requests: + pull_request29968
2021-07-28 13:17:29andrei.avksetnosy: + andrei.avk
messages: + msg398375
2020-10-24 18:16:22aviramhasetmessages: + msg379533
2020-03-29 15:32:12BTaskayasetnosy: - BTaskaya
2020-03-29 15:32:00BTaskayasetpull_requests: - pull_request18577
2020-03-29 15:30:23BTaskayasetnosy: + BTaskaya
pull_requests: + pull_request18577
2020-03-18 12:22:31python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request18410
stage: patch review
2020-03-18 12:06:49aviramhacreate