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

fix: ArchiveAnalyzer should throw AnalysisException #5371

Merged
merged 1 commit into from
Jan 24, 2023
Merged

fix: ArchiveAnalyzer should throw AnalysisException #5371

merged 1 commit into from
Jan 24, 2023

Conversation

jeremylong
Copy link
Owner

Partially fixes #5357

Java's zip handling functions do not properly unzip mpk files. The errors may go un-noticed because the archive analyzer only printed a warning rather then throwing an analysis exception.

See https://issues.apache.org/jira/browse/COMPRESS-562

The updated code still fails for mpk files - but may work for apk files.

@boring-cyborg boring-cyborg bot added the core changes to core label Jan 23, 2023
Copy link
Collaborator

@aikebah aikebah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM... maybe also remove the now unused import of the ZipArchiveInputStream

Makes sense IMO to make the analyzer break on archives that cannot be properly extracted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--zipExtensions does not always work
2 participants