Bug version 0.28.1: IReader.MoveToNextEntry() is not working with encrypted zip files
See original GitHub issueIn Version 0.27.1 IReader.MoveToNextEntry() was working well with encrypted zip files
When project is updated to 0.28.1, the method is only working once and is returning false after first file has been extracted. The problem seems to be with encrypted zip files only:
Example:
`using Stream stream = File.OpenRead(@“C:\Temp\SharpCompressTest\SharpCompressTest.zip”);
var reader = ReaderFactory.Open(stream, new ReaderOptions { Password = “1234” });
// Version 0.28.1: While loop will only extract first file instead of all files while (reader.MoveToNextEntry()) { reader.WriteEntryToDirectory(@"C:\Temp\SharpCompressTest", new ExtractionOptions() { ExtractFullPath = true, PreserveFileTime = true }); }`
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
[BUG] Encrypted ZIP shows contents structure · Issue #635
I transfer it to a usb stick to use on a Windows 10 Home, and it asks me for the password on unzipping...
Read more >Problem that attached encrypted zip of Outlook for Android ...
The users are unable to decompress the attached encrypted Zip file in Outlook on Android devices. Previously, if the attached Zip is clicked,...
Read more >Zip file encryption readable by some Zip clients, not others
I'm investigating a bug report on my open source UnzipKit project. Basically, when writing files encrypted with a password to a Zip file,...
Read more >Cannot open PGP Zip file | Endpoint Encryption
I am receiving PGP zip files. When I decrypt & verify the PGP Viewer opens in an Email format with an attachment. The...
Read more >7-Zip doesn't ask me for a password for a ZIP file I ...
Only the contents of the files is encrypted, which means that no one can read the file without your password. Due to this,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fix released in 0.28.2
I’ll look into implementing the above. Been out of it for personal reasons.