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 2021-07-28 13:17 by andrei.avk.

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
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