Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadError when open a tarfile for writing #64442

Closed
serhiy-storchaka opened this issue Jan 13, 2014 · 2 comments
Closed

ReadError when open a tarfile for writing #64442

serhiy-storchaka opened this issue Jan 13, 2014 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 20243
Nosy @birkenfeld, @gustaebel, @serhiy-storchaka
Dependencies
  • bpo-20238: Incomplete gzip output with tarfile.open(fileobj=..., mode="w:gz")
  • Files
  • tarfile_readerror_write_mode.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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2014-01-18.15:19:15.862>
    created_at = <Date 2014-01-13.19:59:44.505>
    labels = ['type-bug', 'library']
    title = 'ReadError when open a tarfile for writing'
    updated_at = <Date 2014-01-18.15:19:15.861>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2014-01-18.15:19:15.861>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2014-01-18.15:19:15.862>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2014-01-13.19:59:44.505>
    creator = 'serhiy.storchaka'
    dependencies = ['20238']
    files = ['33449']
    hgrepos = []
    issue_num = 20243
    keywords = ['patch']
    message_count = 2.0
    messages = ['208044', '208401']
    nosy_count = 4.0
    nosy_names = ['georg.brandl', 'lars.gustaebel', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue20243'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

    @serhiy-storchaka
    Copy link
    Member Author

    ReadError can be raised when open a tarfile in write mode (e.g. 'w:gz'). Here is a patch wish a test. In additional it rewrites the handling errors in gzopen() which is too complicated now. This complication is possible the cause of bugs bpo-11513 and bpo-20238.

    @serhiy-storchaka serhiy-storchaka self-assigned this Jan 13, 2014
    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jan 13, 2014
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 18, 2014

    New changeset 61b6accbca9f by Serhiy Storchaka in branch '2.7':
    Issue bpo-20243: TarFile no longer raise ReadError when opened in write mode.
    http://hg.python.org/cpython/rev/61b6accbca9f

    New changeset 2f3b47b63f91 by Serhiy Storchaka in branch '3.3':
    Issue bpo-20243: TarFile no longer raise ReadError when opened in write mode.
    http://hg.python.org/cpython/rev/2f3b47b63f91

    New changeset 40a5c7547c3d by Serhiy Storchaka in branch 'default':
    Issue bpo-20243: TarFile no longer raise ReadError when opened in write mode.
    http://hg.python.org/cpython/rev/40a5c7547c3d

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant