New submission from Andrew Miller <aym...@gmail.com>: On a WinZip AES-256 encrypted zip, zipfile.extractall raises a RuntimeError for "Bad password for file" when given the correct password. Command line example below:
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from zipfile import ZipFile >>> zip = ZipFile("example.zip", "r") >>> zip.extractall(".", pwd="cat") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/zipfile.py", line 935, in extractall self.extract(zipinfo, path, pwd) File "/usr/lib/python2.6/zipfile.py", line 923, in extract return self._extract_member(member, path, pwd) File "/usr/lib/python2.6/zipfile.py", line 963, in _extract_member source = self.open(member, pwd=pwd) File "/usr/lib/python2.6/zipfile.py", line 898, in open raise RuntimeError("Bad password for file", name) RuntimeError: ('Bad password for file', <zipfile.ZipInfo object at 0xb739e26c>) >>> ---------- components: Library (Lib) files: example.zip messages: 109342 nosy: aymill priority: normal severity: normal status: open title: zipfile.extractall raises runtime error on correct password type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file17872/example.zip _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9170> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com