urllib.request add_header() currently allows trailing spaces (and other weird stuff)

Aberta
#61,524 22 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
networking

Direção de pesquisa

Start at urllib.request.add_header() and compare its behavior with issue-17322-1.patch and request_header_space_removal.patch. Determine the expected handling of trailing spaces and other malformed values, then verify the change with focused urllib.request tests.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

stdlib type-bug
BPO 17322
Nosy @orsenthil, @bitdancer, @karlcow, @vadmium, @serhiy-storchaka
Files
  • issue-17322-1.patch
  • request_header_space_removal.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 2013-02-28.21:27:14.234>
    labels = ['type-bug', 'library']
    title = 'urllib.request add_header() currently allows trailing spaces (and other weird stuff)'
    updated_at = <Date 2015-03-12.09:25:59.868>
    user = 'https://github.com/karlcow'
    

    bugs.python.org fields:

    activity = <Date 2015-03-12.09:25:59.868>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2013-02-28.21:27:14.234>
    creator = 'karlcow'
    dependencies = []
    files = ['29292', '29297']
    hgrepos = []
    issue_num = 17322
    keywords = ['patch']
    message_count = 22.0
    messages = ['183234', '183236', '183322', '183357', '183382', '183383', '183384', '183385', '183393', '183397', '183398', '183399', '183400', '183410', '183412', '183415', '183451', '183459', '183467', '227361', '236425', '237920']
    nosy_count = 6.0
    nosy_names = ['orsenthil', 'r.david.murray', 'karlcow', 'martin.panter', 'piotr.dobrogost', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17322'
    versions = ['Python 3.5']
    

    Linguagem predominante
    Python
    Estrelas
    77.2k
    Forks
    36k
    Merge médio
    1d 9h
    PRs com merge (30d)
    558

    Guia de contribuição

    Abrir o guia de contribuição

    Primeiros passos

    1. Leia a issue inteira e depois o guia de contribuição do projeto.
    2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
    3. Faça um fork do repositório e trabalhe em uma branch.
    4. Abra um pull request que referencie o número da issue.

    Mais de python/cpython

    Todas as issues de python/cpython

    Receba novas issues na sua caixa de entrada

    Um resumo curto de issues do GitHub para quem está começando.