Skip to content

cgi module cannot handle POST with multipart/form-data in 3.x #49203

@oopos

Description

@oopos
mannequin
BPO 4953
Nosy @warsaw, @birkenfeld, @amauryfa, @vstinner, @merwok, @bitdancer, @florentx, @PierreQuentel
Files
  • full_source_and_error.zip: full source and error show
  • opsuper.pl: Perl code for process post files from form
  • unittest.zip: cgi.FieldStorage unittest for Multipart form-data and associated files.
  • http.zip: Module cgi_new.py and tests
  • cgitest-python3.py
  • cgi_tests.zip: cgi_test.py and associated files
  • adder.html: uses get, works
  • adderpost.html: just hanged get to post, makes adder.cgi hang
  • localCGIServer.py: my wrapper around http.server to handle localhost
  • adder.cgi: action script used by adder.html. adderpost.html, hangs with adderpost.html
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2011-01-14.13:12:27.362>
    created_at = <Date 2009-01-15.09:02:45.958>
    labels = ['type-bug', 'library', 'expert-unicode']
    title = 'cgi module cannot handle POST with multipart/form-data in 3.x'
    updated_at = <Date 2011-01-15.01:19:29.678>
    user = 'https://bugs.python.org/oopos'

    bugs.python.org fields:

    activity = <Date 2011-01-15.01:19:29.678>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-01-14.13:12:27.362>
    closer = 'vstinner'
    components = ['Library (Lib)', 'Unicode']
    creation = <Date 2009-01-15.09:02:45.958>
    creator = 'oopos'
    dependencies = []
    files = ['12753', '12768', '14235', '20217', '20270', '20385', '20393', '20394', '20395', '20396']
    hgrepos = []
    issue_num = 4953
    keywords = ['patch']
    message_count = 130.0
    messages = ['79892', '79893', '79894', '79896', '79898', '79901', '79939', '79981', '80000', '88960', '88962', '89112', '91444', '91449', '91711', '91741', '95288', '95292', '95330', '107959', '108221', '121864', '125035', '125065', '125086', '125088', '125100', '125105', '125106', '125108', '125114', '125152', '125153', '125158', '125159', '125178', '125181', '125201', '125217', '125235', '125237', '125241', '125402', '125403', '125410', '125419', '125426', '125428', '125474', '125481', '125483', '125501', '125524', '125533', '125543', '125546', '125556', '125557', '125558', '125563', '125570', '125583', '125629', '125633', '125637', '125698', '125839', '125840', '125885', '125886', '125892', '125893', '125900', '125901', '125921', '125926', '125928', '125930', '125931', '125935', '125952', '125992', '125993', '125994', '126035', '126060', '126062', '126065', '126066', '126075', '126117', '126124', '126140', '126145', '126152', '126160', '126161', '126162', '126164', '126165', '126167', '126173', '126175', '126199', '126205', '126207', '126210', '126212', '126214', '126215', '126219', '126222', '126232', '126233', '126242', '126249', '126251', '126253', '126256', '126257', '126262', '126264', '126266', '126267', '126268', '126269', '126289', '126293', '126301', '126307']
    nosy_count = 17.0
    nosy_names = ['barry', 'georg.brandl', 'amaury.forgeotdarc', 'ggenellina', 'vstinner', 'andyharrington', 'eric.araujo', 'grahamd', 'v+python', 'r.david.murray', 'oopos', 'tcourbon', 'tobias', 'flox', 'pebbe', 'quentel', 'erob']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'needs patch'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4953'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytopic-unicodetype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions