[issue2824] zipfile to handle duplicate files in archive

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6, Python 2.7, Python 3.2 ___ Python tracker ___ _

[issue2824] zipfile to handle duplicate files in archive

2021-04-13 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- nosy: +obfusk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue2824] zipfile to handle duplicate files in archive

2021-01-27 Thread Jerry Heiselman
Jerry Heiselman added the comment: Further, some tools like zipgrep, seem to iterate over the toc in the zipfile and end up running the grep part once per entry leading to some duplication of data returned without it being obvious that there wasn't actually duplicate data in the zip archive.

[issue2824] zipfile to handle duplicate files in archive

2021-01-27 Thread Jerry Heiselman
Jerry Heiselman added the comment: This just bit us too. I don't feel like a warning is enough. In our case, we want to prevent it from happening to begin with so that a developer who isn't expecting this doesn't have to know ahead of time to check for a file. Once a duplicate is in the zip

[issue2824] zipfile to handle duplicate files in archive

2020-12-15 Thread Irit Katriel
Irit Katriel added the comment: This was changed to a warning in issue20262. Is that enough or should it be an exception? -- nosy: +iritkatriel ___ Python tracker ___

[issue2824] zipfile to handle duplicate files in archive

2015-05-04 Thread Wessel Badenhorst
Changes by Wessel Badenhorst : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue2824] zipfile to handle duplicate files in archive

2013-01-31 Thread Michael Driscoll
Michael Driscoll added the comment: Whatever became of this? We just stumbled across this bug in our code at work where we accidentally put multiple files of the same name into the zip file and not only does it not overwrite the others, but when you go to access that file name, it grabs the fi

[issue2824] zipfile to handle duplicate files in archive

2012-04-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2824] zipfile to handle duplicate files in archive

2010-04-09 Thread Yaniv Aknin
Yaniv Aknin added the comment: Attached is the addition of the 'low_level' parameter to ZipFile. Included are the parameter, a global switch controlling whether the parameter will raise an Exception or trigger a DeprecationWarning (the latter, for now), updated tests and updated documents. I

[issue2824] zipfile to handle duplicate files in archive

2010-04-08 Thread anatoly techtonik
anatoly techtonik added the comment: On the second thought having a switch for a low-level zip format hacking is a good addition. It may also be used for in-place removals from .zip file by erasing directory entry. Otherwise remove operation will require repacking archive into temporary file,

[issue2824] zipfile to handle duplicate files in archive

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin added the comment: This affect 3.x as well. Regardless of the exact version this will come out in, I think the only proper solution is one with which we eventually, maybe in two versions' time, end up with a behaviour that raises an exception upon double insertion. Also, we shoul

[issue2824] zipfile to handle duplicate files in archive

2010-04-06 Thread anatoly techtonik
anatoly techtonik added the comment: Still an issue for Python 2.7 -- versions: +Python 2.7 Added file: http://bugs.python.org/file16776/test2824.py ___ Python tracker ___ __

[issue2824] zipfile to handle duplicate files in archive

2009-06-17 Thread Alexandru V. Mosoi
Alexandru V. Mosoi added the comment: a similar problem appears when the zip file contains two files as in: ['_test/tree.pl', '_test/']. for ZipFile.extractall() when _test/tree.pl is extracted _test/ is created and the the extraction of _test/ fails because OSError: [Errno 17] File exists: '_t

[issue2824] zipfile to handle duplicate files in archive

2008-05-13 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: The mechanism for throwing an error has been written, however for the case of a duplicated filename, it appears to have been deliberatly not been used by the original author.: def _writecheck(self, zinfo): """Check for errors before

[issue2824] zipfile to handle duplicate files in archive

2008-05-12 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: How about adding optional "replace=True" attribute to the write method? So that people who are not aware enough to adjust the code and handle new warning could still get valid archives. __ Tracker <[EMAIL PR

[issue2824] zipfile to handle duplicate files in archive

2008-05-11 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I think a warning would be sensible here. The behavior is certainly not what I would expect. -- nosy: +alanmcintyre, georg.brandl __ Tracker <[EMAIL PROTECTED]> ___

[issue2824] zipfile to handle duplicate files in archive

2008-05-11 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: ZipFile allows to add the same file to archive twice. I bet it is not intended behavior for many users who would like to either replace file inside of archive or get runtime warning about duplicate file to be added. http://code.google.com