This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: permissions too restrictive in zipfile.writestr
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, rdussin
Priority: normal Keywords: patch

Created on 2019-11-21 20:01 by rdussin, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 17327 open rdussin, 2019-11-21 20:05
Messages (2)
msg357210 - (view) Author: Raphael Dussin (rdussin) * Date: 2019-11-21 20:01
zipfile.writestr write with permissions 600 by default and there is no way to override permissions. This can be an issue when writing zip archive of data one want to share (e.g. zarr zipstore, see https://github.com/zarr-developers/zarr-python/pull/517)


Proposed fix in upcoming PR is to add the desired permission as an optional arg.
msg411527 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-24 23:10
Closed issue23976 as duplicate of this.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83067
2022-01-24 23:10:17iritkatrielsetversions: + Python 3.11, - Python 3.8
nosy: + iritkatriel

messages: + msg411527

type: behavior -> enhancement
2019-11-21 20:05:29rdussinsetkeywords: + patch
stage: patch review
pull_requests: + pull_request16814
2019-11-21 20:01:41rdussincreate