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.

Author peter@psantoro.net
Recipients peter@psantoro.net
Date 2014-03-13.09:46:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394703965.34.0.603199781912.issue20907@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-13 09:46:05peter@psantoro.netsetrecipients: + peter@psantoro.net
2014-03-13 09:46:05peter@psantoro.netsetmessageid: <1394703965.34.0.603199781912.issue20907@psf.upfronthosting.co.za>
2014-03-13 09:46:05peter@psantoro.netlinkissue20907 messages
2014-03-13 09:46:05peter@psantoro.netcreate