question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug version 0.28.1: IReader.MoveToNextEntry() is not working with encrypted zip files

See original GitHub issue

In 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:open
  • Created 2 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
adamhathcockcommented, Apr 25, 2021

fix released in 0.28.2

1reaction
adamhathcockcommented, Mar 1, 2023

I’ll look into implementing the above. Been out of it for personal reasons.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found