urllib.parse.urlparse accepts any falsy value as an url

Abierto
#66,430 19 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with urllib.parse.urlparse and the historical issue22234 patches listed in the report, especially the deprecation and disallow patches. Review the existing behavior and related tests, then confirm the accepted handling of falsy, non-string, and non-byte arguments; the issue is done when that behavior is tested and matches the agreed compatibility path.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

stdlib type-bug
BPO 22234
Nosy @orsenthil, @bitdancer, @vadmium, @serhiy-storchaka, @ztane, @demianbrecht, @poleto, @jacobtylerwalls
PRs
  • python/cpython#26687
  • Files
  • issue22234_36.patch: Patch with the deprecation warning to be applied on Python 3.6.
  • issue22234_37.patch: Changes to urlparse to handle non-str and non-byte arguments
  • urlparse_empty_bad_arg_deprecation.patch
  • urlparse_empty_bad_arg_disallow.patch
  • urlparse_empty_bad_arg_deprecation2.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 2014-08-20.12:39:51.904>
    labels = ['type-bug', 'library']
    title = 'urllib.parse.urlparse accepts any falsy value as an url'
    updated_at = <Date 2021-06-13.22:43:49.238>
    user = 'https://github.com/ztane'
    

    bugs.python.org fields:

    activity = <Date 2021-06-13.22:43:49.238>
    actor = 'jacobtylerwalls'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2014-08-20.12:39:51.904>
    creator = 'ztane'
    dependencies = []
    files = ['42591', '42592', '42600', '42602', '42607']
    hgrepos = []
    issue_num = 22234
    keywords = ['patch']
    message_count = 19.0
    messages = ['225566', '225832', '260671', '264023', '264210', '264211', '264217', '264219', '264261', '264269', '264278', '264344', '264346', '264347', '264357', '264427', '265030', '395765', '395766']
    nosy_count = 8.0
    nosy_names = ['orsenthil', 'r.david.murray', 'martin.panter', 'serhiy.storchaka', 'ztane', 'demian.brecht', 'luiz.poleto', 'jacobtylerwalls']
    pr_nums = ['26687']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22234'
    versions = ['Python 3.6']
    

    Lenguaje dominante
    Python
    Estrellas
    77.2k
    Forks
    36k
    Merge medio
    1 d 9 h
    PR fusionados (30 d)
    558

    Guía de contribución

    Abrir la guía de contribución

    Primeros pasos

    1. Lee el issue completo y luego la guía de contribución del proyecto.
    2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
    3. Haz un fork del repositorio y trabaja en una rama.
    4. Abre un pull request que haga referencia al número del issue.

    Más de python/cpython

    Todos los issues de python/cpython

    Issues similares

    Más issues de Python

    Recibe los nuevos issues en tu correo

    Un resumen breve de issues de GitHub para principiantes.