classification
Title: Improve zipfile: add support for symlinks
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: zaphodef
Priority: normal Keywords: patch

Created on 2019-08-22 21:14 by zaphodef, last changed 2019-09-21 08:14 by zaphodef.

Pull Requests
URL Status Linked Edit
PR 15401 open zaphodef, 2019-08-22 21:16
Messages (2)
msg350231 - (view) Author: Pierre-Jean Grenier (zaphodef) * Date: 2019-08-22 21:14
The module tarfile contains some methods for knowing whether an archive member is a regular file/a directory/a symlink. Apart from an "is_dir()" method, there was nothing alike in the zipfile module. For an on-going project, I needed to know whether an archive member was a symlink or not, to prevent zip symlinks attacks.

I thought this could be of used for other people, given I struggled a little to find a way of saying if an archive member is a symlink or not.

This is why I think adding support for symlinks in the zipfile module could be a good idea.
msg352932 - (view) Author: Pierre-Jean Grenier (zaphodef) * Date: 2019-09-21 08:14
The PR went through review and has been awaiting core review for almost a month, anyone to have a look at it? :)
History
Date User Action Args
2019-09-21 08:14:11zaphodefsetmessages: + msg352932
2019-08-22 21:16:39zaphodefsetkeywords: + patch
stage: patch review
pull_requests: + pull_request15108
2019-08-22 21:14:36zaphodefcreate