[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall
Peter Santoro
report at bugs.python.org
Thu Mar 13 10:46:05 CET 2014
New submission from Peter Santoro:
Since Python 3.3.1, ZipFile.extractall was enhanced to better handle absolute paths and illegal characters. The associated logic within shutil._unpack_zipfile essentially skips zip members with these issues.
If a zip file contains all absolute paths, ZipFile.extractall works as expected (i.e. the zip file is unpacked), but shutil._unpack_zipfile (normally called indirectly via shutil.unpack_archive) appears to do nothing (i.e. it silently fails to unpack the zip file).
The attached patch attempts to unify the behavior of extracting zip files between shutil.unpack_archive with ZipFile.extractall.
----------
components: Library (Lib)
files: shutil.diff
keywords: patch
messages: 213374
nosy: peter at psantoro.net
priority: normal
severity: normal
status: open
title: behavioral differences between shutil.unpack_archive and ZipFile.extractall
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file34393/shutil.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20907>
_______________________________________
More information about the Python-bugs-list
mailing list