-
Notifications
You must be signed in to change notification settings - Fork 145
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
Handle broken zip created with adm-zip in a nicer way #1938
Comments
Fix the `package` npm script to use the `archiver` npm package instead of `admin-zip` so that it produces a valid Zip file. Closes #193 mozilla/addons#672 mozilla/addons-linter#1938
Fix the `package` npm script to use the `archiver` npm package instead of `admin-zip` so that it produces a valid Zip file. Closes #193 mozilla/addons#672 mozilla/addons-linter#1938
@diox should this be an upstream bug in yauzl? |
I'm not sure, I'm not familiar enough with the linter and yazl to figure out if that's expected behavior (meaning we should be doing something on our end to catch this) or not. Ultimately is too low priority for us to spend a lot of time on it IMHO, but a contributor would be welcome to do it. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions. |
adm-zip
is a popular node package to generate zip files. Somehow, at least one developer using it end up with a weird zip that the linter can't handle. I've attached the zip file in question to this issue.The error being thrown is
The linter process terminates when hitting that, and that causes a
Validation was unable to complete successfully due to an unexpected error.
message on the server.We should handle that in a nicer way - I don't suggest managing to proceed with validation as the zipfile is weird (various linux tools I had also have issues with it, though nothing as bad as the linter) - but at least return a true linter error.
The text was updated successfully, but these errors were encountered: