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

Contrary to documentation, ZipFile.extract does not extract timestamps or other metadata #76351

Open
mhsmith mannequin opened this issue Nov 29, 2017 · 2 comments
Open
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mhsmith
Copy link
Mannequin

mhsmith mannequin commented Nov 29, 2017

BPO 32170
Nosy @Yhg1s, @serhiy-storchaka, @mhsmith

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-11-29.19:51:55.568>
labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
title = 'Contrary to documentation, ZipFile.extract does not extract timestamps or other metadata'
updated_at = <Date 2021-10-22.14:00:13.743>
user = 'https://github.com/mhsmith'

bugs.python.org fields:

activity = <Date 2021-10-22.14:00:13.743>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-11-29.19:51:55.568>
creator = 'Malcolm Smith'
dependencies = []
files = []
hgrepos = []
issue_num = 32170
keywords = []
message_count = 2.0
messages = ['307255', '307275']
nosy_count = 5.0
nosy_names = ['twouters', 'alanmcintyre', 'sascha_silbe', 'serhiy.storchaka', 'Malcolm Smith']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue32170'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

@mhsmith
Copy link
Mannequin Author

mhsmith mannequin commented Nov 29, 2017

The documentation explicitly says "file information is extracted as accurately as possible". But the zipfile module doesn't actually extract any metadata at all. I assume this text was copied and pasted from the tarfile module, which does implement this.

Fixing the code is preferred to fixing the documentation.

@mhsmith mhsmith mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 29, 2017
@mhsmith
Copy link
Mannequin Author

mhsmith mannequin commented Nov 30, 2017

Related: bpo-15795

@iritkatriel iritkatriel added 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Oct 22, 2021
@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
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
Status: No status
Development

No branches or pull requests

1 participant