python / python/cpython

ZipFile from 'a'ppend-mode file generates invalid zip

Open
#74,399 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

BPO 30213
Nosy @pfmoore, @tjguk, @zware, @serhiy-storchaka, @zooba, @boppreh

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-04-30.01:33:15.462>
labels = ['type-bug', 'library', 'OS-windows']
title = "ZipFile from 'a'ppend-mode file generates invalid zip"
updated_at = <Date 2017-12-04.07:33:52.333>
user = 'https://github.com/boppreh'

bugs.python.org fields:

activity = <Date 2017-12-04.07:33:52.333>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'Windows']
creation = <Date 2017-04-30.01:33:15.462>
creator = 'BoppreH'
dependencies = []
files = []
hgrepos = []
issue_num = 30213
keywords = []
message_count = 5.0
messages = ['292616', '296123', '307529', '307542', '307543']
nosy_count = 6.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'serhiy.storchaka', 'steve.dower', 'BoppreH']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue30213'
versions = ['Python 3.6']

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

The report identifies ZipFile opened in append mode and labels the problem as Windows-specific, but names no source file, reproducer, or test. Start by reproducing the invalid archive, then locate the standard-library ZipFile implementation and relevant tests; done means an append-mode archive is accepted as a valid ZIP.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.