Open
Description
BPO | 23976 |
---|
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 2015-04-16.20:48:40.237>
labels = ['type-bug', 'library']
title = 'ZipFile.writestr implies non-regular files'
updated_at = <Date 2015-04-16.20:48:40.237>
user = 'https://bugs.python.org/dalphus'
bugs.python.org fields:
activity = <Date 2015-04-16.20:48:40.237>
actor = 'dalphus'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2015-04-16.20:48:40.237>
creator = 'dalphus'
dependencies = []
files = []
hgrepos = []
issue_num = 23976
keywords = []
message_count = 1.0
messages = ['241274']
nosy_count = 1.0
nosy_names = ['dalphus']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue23976'
versions = ['Python 2.7']
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
No status
Activity
dalphus commentedon Apr 16, 2015
When ZipFile.writestr is called with arcname as its first parameter, it creates a ZipInfo object that has 0o0600 << 16 as its external_attr. Files created with write generally have 0o0100600 (S_IFREG is set indicating a regular file). Some archive managers (like Ark) will not populate the extracted file unless it contains this flag.
pythongh-68164: Set the "regular file" bit in zipfile's writestr
pythongh-68164: Set the "regular file" bit in zipfile's writestr