Skip to content

fix: ArchiveAnalyzer should throw AnalysisException#5371

Merged
jeremylong merged 1 commit intomainfrom
mpk
Jan 24, 2023
Merged

fix: ArchiveAnalyzer should throw AnalysisException#5371
jeremylong merged 1 commit intomainfrom
mpk

Conversation

@jeremylong
Copy link
Copy Markdown
Collaborator

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
@jeremylong jeremylong requested a review from aikebah January 23, 2023 11:54
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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