Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove supported method checks from the ZipEntry.CompressionMethod property setter #587

Merged
merged 1 commit into from
May 8, 2021

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Mar 1, 2021

As queried in #500 and in various other discussions - Should the CompressionMethod property setter be trying to determine if a method is supported, given that the class is shared by ZipFile and the Zip stream classes, which have different behaviour?

There were various places in the past that relied on this behaviour to reject unsupported entries, but I think ZipFile/ZipXStream should be checking that themselves where needed now.

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

@piksel piksel merged commit 99170e1 into icsharpcode:master May 8, 2021
@Numpsy Numpsy deleted the rw/zip/no_format_check branch May 8, 2021 21:00
HowToDoThis added a commit to HowToDoThis/SharpZipLib that referenced this pull request Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants