Skip to content

urllib.parse.urlparse doesn't check port #88037

Closed

Description

@p-alik
mannequin
BPO 43871
Nosy @orsenthil, @vstinner, @tirkarthi, @p-alik, @miguendes
PRs
  • gh-88037 - Move port validation logic to parsing time #159122
  • 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 = 'https://github.com/orsenthil'
    closed_at = None
    created_at = <Date 2021-04-16.17:30:08.679>
    labels = ['3.10']
    title = "urllib.parse.urlparse doesn't check port"
    updated_at = <Date 2021-05-01.09:34:26.557>
    user = 'https://github.com/p-alik'

    bugs.python.org fields:

    activity = <Date 2021-05-01.09:34:26.557>
    actor = 'miguendes'
    assignee = 'orsenthil'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2021-04-16.17:30:08.679>
    creator = 'palik'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43871
    keywords = ['patch']
    message_count = 5.0
    messages = ['391238', '391242', '391265', '391282', '392577']
    nosy_count = 5.0
    nosy_names = ['orsenthil', 'vstinner', 'xtreak', 'palik', 'miguendes']
    pr_nums = ['25774']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue43871'
    versions = ['Python 3.10']

    Linked PRs

    Activity

    1. added a commit that references this issue on Nov 8, 2026
    2. picnixz commented on Nov 8, 2026

      @picnixz
      Member

      @orsenthil the "needs backport to" labels are for PRs only

    3. moved this from Todo to In Progress in Urllib issueson Nov 8, 2026
    4. orsenthil commented on Nov 8, 2026

      @orsenthil
      Member

      @picnixz , Got it. Yeah, I was wondering about this while selecting. Removed.

    5. added 2 commits that reference this issue on Nov 8, 2026
    6. moved this from In Progress to Done in Urllib issueson Nov 8, 2026
    7. added 3 commits that reference this issue on Nov 14, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions