Content-length is incorrect when request body is a list or tuple

Open
#67,539 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by reading list_content_length_3.patch, then compare it with list_content_length.patch, list_content_length_1.patch, and list_content_length_2.patch. Trace the affected library request handling and verify that Content-Length is correct for list and tuple request bodies, with regression coverage if the existing tests identify a suitable location.

Written by the indexing model from the issue text.

Description

stdlib type-bug
BPO 23350
Nosy @orsenthil, @bitdancer, @berkerpeksag, @vadmium, @serhiy-storchaka, @demianbrecht
Files
  • list_content_length.patch
  • list_content_length_1.patch
  • list_content_length_2.patch
  • list_content_length_3.patch
  • 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 = None
    created_at = <Date 2015-01-30.01:12:42.088>
    labels = ['type-bug', 'library']
    title = 'Content-length is incorrect when request body is a list or tuple'
    updated_at = <Date 2015-04-14.15:48:37.310>
    user = 'https://github.com/demianbrecht'
    

    bugs.python.org fields:

    activity = <Date 2015-04-14.15:48:37.310>
    actor = 'Pinz'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2015-01-30.01:12:42.088>
    creator = 'demian.brecht'
    dependencies = []
    files = ['37913', '37915', '38125', '38130']
    hgrepos = []
    issue_num = 23350
    keywords = ['patch']
    message_count = 22.0
    messages = ['235012', '235019', '235022', '235068', '235075', '235876', '235879', '235893', '235949', '238825', '238848', '238938', '238939', '238954', '238963', '239763', '239764', '240563', '240611', '240760', '240840', '240917']
    nosy_count = 7.0
    nosy_names = ['orsenthil', 'r.david.murray', 'berker.peksag', 'martin.panter', 'serhiy.storchaka', 'demian.brecht', 'Pinz']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23350'
    versions = ['Python 3.5']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.