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

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 }); }`

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

fix released in 0.28.2

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