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

[COMPRESS-664] Return null value from getNextEntry() for empty file #486

Merged
merged 1 commit into from
Feb 23, 2024
Merged

[COMPRESS-664] Return null value from getNextEntry() for empty file #486

merged 1 commit into from
Feb 23, 2024

Conversation

lenoch7
Copy link
Contributor

@lenoch7 lenoch7 commented Feb 23, 2024

Fix regression error in case when getNextEntry() method is invoked on empty file (zero size) to get first entry. Till version 1.25.0, null value was returned (like is done in standard java ZipInputStream too). The regression was caused by implementing 'Support preamble garbage in ZipArchiveInputStream' feature (PR 471).

Fix regression error in case when getNextEntry() method is invoked on
empty file (zero size) to get first entry. Till version 1.25.0, null
value was returned (like is done in standard java ZipInputStream too).
The regression was caused by implementing 'Support preamble garbage
in ZipArchiveInputStream' feature (PR 471).
 - #471
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.77%. Comparing base (1887b3d) to head (9bec59e).
Report is 97 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #486   +/-   ##
=========================================
  Coverage     80.76%   80.77%           
- Complexity     6801     6830   +29     
=========================================
  Files           348      348           
  Lines         24945    25007   +62     
  Branches       4029     4034    +5     
=========================================
+ Hits          20148    20200   +52     
- Misses         3269     3283   +14     
+ Partials       1528     1524    -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@garydgregory garydgregory merged commit fe4dfb0 into apache:master Feb 23, 2024
15 checks passed
@garydgregory garydgregory changed the title COMPRESS-664 - return null value from getNextEntry() for empty file [COMPRESS-664] Return null value from getNextEntry() for empty file Feb 23, 2024
@lenoch7 lenoch7 deleted the COMPRESS-664-ZipArchiveInputStream branch February 25, 2024 14:55
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.

3 participants