Skip to content

email.header.Header.encode() crashes with IndexError on spaces only value #71924

Description

@timgraham
mannequin
BPO 27737
Nosy @warsaw, @bitdancer, @timgraham
PRs
  • bpo-27737: Allow whitespace only headers encoding #13478
  • [3.7] bpo-27737: Allow whitespace only headers encoding (GH-13478) #13517
  • Files
  • whitespace-header-test.diff: regression test for cpython's test suite
  • 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 2019-05-23.01:17:21.594>
    created_at = <Date 2016-08-11.13:51:04.796>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'email.header.Header.encode() crashes with IndexError on spaces only value'
    updated_at = <Date 2019-05-23.01:41:47.667>
    user = 'https://github.com/timgraham'

    bugs.python.org fields:

    activity = <Date 2019-05-23.01:41:47.667>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-23.01:17:21.594>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2016-08-11.13:51:04.796>
    creator = 'Tim.Graham'
    dependencies = []
    files = ['44077']
    hgrepos = []
    issue_num = 27737
    keywords = ['patch']
    message_count = 4.0
    messages = ['272447', '343262', '343264', '343269']
    nosy_count = 3.0
    nosy_names = ['barry', 'r.david.murray', 'Tim.Graham']
    pr_nums = ['13478', '13517']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27737'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifestdlibStandard 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