Allow ZipArchive to create duplicate entries (#69524)
authorDavid CantĂș <dacantu@microsoft.com>
Mon, 11 Jul 2022 22:39:26 +0000 (17:39 -0500)
committerGitHub <noreply@github.com>
Mon, 11 Jul 2022 22:39:26 +0000 (17:39 -0500)
commitb81da9fc711c323e56184ef84c8aff735563b2db
tree3dfd835b579a7aa692339d794953fed78c1e529a
parentce617cb3ac4b782cf4ec8fed097a7722a9590ebb
Allow ZipArchive to create duplicate entries (#69524)

* Revert "throw exception when creating an entry name that already exists in ZipArchive (#60973)"

This reverts commit 7a62468ffbb90008e08b30471bfa94b2d4c58726.

* Add tests for duplicate entries

* use TryAdd
src/libraries/System.IO.Compression/src/Resources/Strings.resx
src/libraries/System.IO.Compression/src/System/IO/Compression/ZipArchive.cs
src/libraries/System.IO.Compression/tests/ZipArchive/zip_CreateTests.cs
src/libraries/System.IO.Compression/tests/ZipArchive/zip_UpdateTests.cs