Skip to content

cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition #68952

@peterlandry

Description

@peterlandry
BPO 24764
Nosy @vstinner, @ethanfurman, @PierreQuentel, @bertjwregeer, @berkerpeksag
Files
  • cgi_multipart.patch: Test case and naive bugfix
  • cgi_multipart.patch: Improved patch that removes the header when present
  • 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 = 'https://github.com/ethanfurman'
    closed_at = <Date 2015-08-18.17:45:31.731>
    created_at = <Date 2015-07-31.16:07:21.508>
    labels = ['type-bug', 'library']
    title = "cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition"
    updated_at = <Date 2020-07-20.20:52:04.982>
    user = 'https://bugs.python.org/PeterLandry'

    bugs.python.org fields:

    activity = <Date 2020-07-20.20:52:04.982>
    actor = 'Rhodri James'
    assignee = 'ethan.furman'
    closed = True
    closed_date = <Date 2015-08-18.17:45:31.731>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2015-07-31.16:07:21.508>
    creator = 'Peter Landry'
    dependencies = []
    files = ['40084', '40145']
    hgrepos = []
    issue_num = 24764
    keywords = ['patch']
    message_count = 14.0
    messages = ['247751', '247752', '247753', '247799', '248185', '248198', '248199', '248258', '248306', '248720', '248729', '248778', '248779', '281076']
    nosy_count = 8.0
    nosy_names = ['vstinner', 'ethan.furman', 'quentel', 'X-Istence', 'python-dev', 'berker.peksag', 'Peter Landry', 'pradeep']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue24764'
    versions = ['Python 3.4', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    Labels

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions