Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgi.py bug report + fix: tailing carriage return and newline characters in multipart cgi input broken #53092

Closed
wobsta mannequin opened this issue May 28, 2010 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@wobsta
Copy link
Mannequin

wobsta mannequin commented May 28, 2010

BPO 8846
Nosy @florentx
Files
  • fix-cgi.patch: correct and extend the tests + fixes to the stdlib
  • 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-17.21:58:10.064>
    created_at = <Date 2010-05-28.20:54:36.373>
    labels = ['type-bug', 'library']
    title = 'cgi.py bug report + fix: tailing carriage return and newline characters in multipart cgi input broken'
    updated_at = <Date 2011-01-17.21:58:10.063>
    user = 'https://bugs.python.org/wobsta'

    bugs.python.org fields:

    activity = <Date 2011-01-17.21:58:10.063>
    actor = 'wobsta'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-01-17.21:58:10.064>
    closer = 'wobsta'
    components = ['Library (Lib)']
    creation = <Date 2010-05-28.20:54:36.373>
    creator = 'wobsta'
    dependencies = []
    files = ['17487']
    hgrepos = []
    issue_num = 8846
    keywords = ['patch']
    message_count = 2.0
    messages = ['106691', '126439']
    nosy_count = 2.0
    nosy_names = ['flox', 'wobsta']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8846'
    versions = ['Python 3.1', 'Python 3.2']

    @wobsta
    Copy link
    Mannequin Author

    wobsta mannequin commented May 28, 2010

    There are serious bugs in carriage return and newline handling at the end of a multipart cgi input. The enclosed patch extends the test_cgi.py (and actually reverts two wrong tests to what they had been for python2.x). Additionally, the bugs are fixed by two small corrections to cgi.py and email/feedparser.py. Thanks for consideration.

    @wobsta wobsta mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels May 28, 2010
    @wobsta
    Copy link
    Mannequin Author

    wobsta mannequin commented Jan 17, 2011

    I just declare this bug to be a duplicate of bpo-4953. Due to the recent fix r87998 of the cgi module my extended/corrected testcases attached in this bug report now pass.

    @wobsta wobsta mannequin closed this as completed Jan 17, 2011
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants