[New-bugs-announce] [issue39727] cgi.parse() fatally attempts str.decode when handling multipart/form-data
report at bugs.python.org
Sun Feb 23 00:34:16 EST 2020
New submission from James Edington <je0029 at uah.edu>:
It appears that cgi.parse() in Python 3.7.6 [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] fatally chokes on POST requests with multipart/form-data due to some internal processing still relying on assumptions from when str and bytes were the same object.
I'll attach as the first comment the "try-it-at-home" file to demonstrate this error.
components: Library (Lib)
nosy: James Edington
title: cgi.parse() fatally attempts str.decode when handling multipart/form-data
versions: Python 3.7
Added file: https://bugs.python.org/file48902/curlLogs.txt
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce