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.

classification
Title: Misbehaviour in zipfile
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, rphilips
Priority: normal Keywords:

Created on 2006-09-25 13:15 by rphilips, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29978 - (view) Author: Richard Philips (rphilips) Date: 2006-09-25 13:15
Python 2.5

In library module zipfile, a ZipFile object has method
write( filename[, arcname[, compress_type]])

If arcname is not specified, it defaults to the
pathname of filename without a drive letter and with
leading path separators removed.

That is OK.

But if arcname is explicitely specified, the drive
letter and leading path separators are also removed.

I think that is not OK.


thanks,

Richard Philips
msg29979 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-09-30 07:40
Logged In: YES 
user_id=849994

It is, since the Zip specification doesn't allow paths with
drive letters or absolute paths for files inside the zip.

See bug #1413790.
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44025
2006-09-25 13:15:04rphilipscreate