[
https://issues.apache.org/jira/browse/COMPRESS-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16851768#comment-16851768
]
Kyle Willett commented on COMPRESS-488:
---------------------------------------
Thanks, I will try these solutions.
> ZipArchiveInputStream doesn't support .crx files (Chrome Extension)
> -------------------------------------------------------------------
>
> Key: COMPRESS-488
> URL: https://issues.apache.org/jira/browse/COMPRESS-488
> Project: Commons Compress
> Issue Type: Bug
> Components: Compressors
> Affects Versions: 1.18
> Environment: MacOS Mojave: 10.14.2 (18C54)
> java version "1.8.0_131"
> Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
> Reporter: Kyle Willett
> Priority: Major
> Attachments: Lighthouse_v5.0.0.crx
>
>
> Using this tool you can download chrome extensions to .crx files from the
> chrome store.
> [https://www.maketecheasier.com/download-save-chrome-extension/] Attempting
> to extract these zip files using ZipArchiveInputStream, I receive the
> following error
> {code:java}
> Unexpected record signature: 0X34327243{code}
> I attached an example .crx zip file
> VirusTotal link to prove its not malicious
>
> [https://www.virustotal.com/#/file/337a648e7cf30e6938a3cfeb6fed5f429b91ccd4559da4016eb72f0656bf5873/detection]
> On mac and linux I am able to unzip these files using the basic unzip
> binaries, for example:
> {code:java}
> 15:53:37 $ unzip Lighthouse_v5.0.0.crx -d unzipped/
> Archive: Lighthouse_v5.0.0.crx
> warning [Lighthouse_v5.0.0.crx]: 566 extra bytes at beginning or within
> zipfile
> (attempting to process anyway)
> creating: unzipped/_locales/
> creating: unzipped/images/
> inflating: unzipped/popup.html
> inflating: unzipped/manifest.json
> creating: unzipped/scripts/
> creating: unzipped/styles/
> creating: unzipped/_locales/en/
> inflating: unzipped/images/fail.svg
> inflating: unzipped/images/lh_logo_bg.png
> inflating: unzipped/images/lh_logo_bg_no-light.png
> inflating: unzipped/images/lh_logo_canary_bg.png
> inflating: unzipped/images/lh_logo_canary_icon.png
> inflating: unzipped/images/lh_logo_icon.png
> inflating: unzipped/images/lh_logo_icon_light.png
> inflating: unzipped/images/pass.svg
> inflating: unzipped/images/verified.svg
> inflating: unzipped/scripts/lighthouse-ext-bundle.js
> inflating: unzipped/scripts/popup.js
> inflating: unzipped/styles/lighthouse.css
> inflating: unzipped/styles/lighthouse-loading.css
> inflating: unzipped/_locales/en/messages.json
> inflating: unzipped/_locales/en/messages_canary.json
> creating: unzipped/_metadata/
> inflating: unzipped/_metadata/verified_contents.json {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)