python / python/cpython

tarfile would fail to extract tarballs with files under R/O directories (twice)

Open
#74,623 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 30438
Nosy @gustaebel, @catherinedevlin
PRs
  • python/cpython#1768
  • python/cpython#1808
  • Files
  • tarfilero.py: simple script to demonstrate inability to extract a tarball with a file under RO directory
  • 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 2017-05-23.03:49:43.778>
    labels = ['expert-IO']
    title = 'tarfile would fail to extract tarballs with files under R/O directories (twice)'
    updated_at = <Date 2017-05-25.07:32:17.864>
    user = 'https://bugs.python.org/YaroslavHalchenko'
    

    bugs.python.org fields:

    activity = <Date 2017-05-25.07:32:17.864>
    actor = 'lars.gustaebel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['IO']
    creation = <Date 2017-05-23.03:49:43.778>
    creator = 'Yaroslav.Halchenko'
    dependencies = []
    files = ['46888']
    hgrepos = []
    issue_num = 30438
    keywords = ['patch']
    message_count = 7.0
    messages = ['294217', '294278', '294323', '294353', '294427', '294440', '294443']
    nosy_count = 3.0
    nosy_names = ['lars.gustaebel', 'Yaroslav.Halchenko', 'Catherine.Devlin']
    pr_nums = ['1768', '1808']
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue30438'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4', 'Python 3.5', 'Python 3.6']
    

    Linked PRs
    • gh-103174

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start by running the linked tarfilero.py script to reproduce extraction failure for files beneath read-only directories. Trace the tarfile extraction path and review linked PR gh-103174 for existing work; done means the reproduction succeeds without failing when the directory is read-only.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    tooling
    Issue type
    Bug
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    20/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.