Skip to content

TarFile.getmember on directory requires trailing slash iff over 100 chars #66186

@moloney

Description

@moloney
mannequin
BPO 21987
Nosy @gustaebel, @vstinner, @bitdancer, @serhiy-storchaka, @miss-islington, @afonari, @akulakov
PRs
  • bpo-21987: fix TarFile.getmember getting a dir with a trailing slash #30283
  • [3.10] bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) #30737
  • [3.9] bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283) #30738
  • Files
  • tarfile_issue.py
  • issue21987.diff
  • issue21987_py3.5_with_test.patch
  • issue21987_py2.7_with_test.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 = <Date 2022-01-23.17:54:59.291>
    created_at = <Date 2014-07-16.03:40:59.246>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'TarFile.getmember on directory requires trailing slash iff over 100 chars'
    updated_at = <Date 2022-01-23.17:54:59.290>
    user = 'https://bugs.python.org/moloney'

    bugs.python.org fields:

    activity = <Date 2022-01-23.17:54:59.290>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-23.17:54:59.291>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2014-07-16.03:40:59.246>
    creator = 'moloney'
    dependencies = []
    files = ['35976', '36045', '36096', '36202']
    hgrepos = []
    issue_num = 21987
    keywords = ['patch']
    message_count = 15.0
    messages = ['223167', '223174', '223264', '223432', '223732', '224014', '224542', '348618', '376370', '376373', '409261', '409265', '411089', '411092', '411391']
    nosy_count = 10.0
    nosy_names = ['lars.gustaebel', 'vstinner', 'r.david.murray', 'serhiy.storchaka', 'puppet', 'moloney', 'zigg', 'miss-islington', 'af', 'andrei.avk']
    pr_nums = ['30283', '30737', '30738']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21987'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (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