Bug 42219 - [System.IO.Compression] Cannot create ZipArchive with duplicate entries with same name
Summary: [System.IO.Compression] Cannot create ZipArchive with duplicate entries with ...
Alias: None
Product: Class Libraries
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: João Matos
Depends on:
Reported: 2016-06-28 18:42 UTC by João Matos
Modified: 2016-06-29 10:43 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description João Matos 2016-06-28 18:42:34 UTC
https://bugzilla.xamarin.com/show_bug.cgi?id=39282#c5 reported some inconsistencies related to duplicate entries.

Following from researching that issue, I checked MSDN docs related to CreateEntry and it seems duplicate entries with the same name should be supported.

There is no restriction on the string you provide. However, if it is not formatted as a relative path, the entry is created, but you may get an exception when you extract the contents of the zip archive. If an entry with the specified path and name already exists in the archive, a second entry is created with the same path and name.


We currently do not support this feature.
Comment 1 João Matos 2016-06-29 10:43:11 UTC