Skip to content

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

@ztane

Description

@ztane
mannequin
BPO 22234
Nosy @orsenthil, @bitdancer, @vadmium, @serhiy-storchaka, @ztane, @demianbrecht, @poleto, @jacobtylerwalls
PRs
  • gh-63293: Deprecate providing false values besides strings or bytes to urllib.parse functions #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']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard 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