[issue39727] cgi.parse() fatally attempts str.decode when handling multipart/form-data

2020-02-22 Thread James Edington

James Edington  added the comment:

Here is a file to try it out in an instant.

(lines 11–28 are not necessary; they are just "luxuries" allowing easier 
testing of the issue in a web browser)

--
Added file: https://bugs.python.org/file48903/demo.py

___
Python tracker 
<https://bugs.python.org/issue39727>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39727] cgi.parse() fatally attempts str.decode when handling multipart/form-data

2020-02-22 Thread James Edington


New submission from James Edington :

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)
files: curlLogs.txt
messages: 362490
nosy: James Edington
priority: normal
severity: normal
status: open
title: cgi.parse() fatally attempts str.decode when handling multipart/form-data
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48902/curlLogs.txt

___
Python tracker 
<https://bugs.python.org/issue39727>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com