You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ZipArchive should report better error message for empty or invalid stream #136215
Currently, creating ZipArchive on an empty stream throws exception message with "Central Directory corrupt". I met this when I was doing HTTP request incorrectly and got an empty response. This can lead to confusion for whether the requested file is corrupt.
The suggestion is to add dedicated error messages for:
The stream is empty
The stream doesn't have the expected magic word
This can help for locating the problem when the stream comes from non-file cases.
Activity
dotnet-policy-service commentedon Oct 21, 2026
Tagging subscribers to this area: @karelz, @dotnet/area-system-io-compression
See info in area-owners.md if you want to be subscribed.
iremyux commentedon Oct 29, 2026
We will look into it in .NET12 timeline.
Improve ZipArchive diagnostics for empty and invalid streams (dotnet#…