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

Unhandled error event #65

Closed
geneh opened this issue Mar 13, 2018 · 4 comments
Closed

Unhandled error event #65

geneh opened this issue Mar 13, 2018 · 4 comments

Comments

@geneh
Copy link

geneh commented Mar 13, 2018

In case of a bad archive, for example https://search.maven.org/remotecontent?filepath=org/xhtmlrenderer/flying-saucer-pdf-itext5/9.1.12/flying-saucer-pdf-itext5-9.1.12-sources.jar, yauzl library emits an error event which isn't handled. It causes a running process to crash instead of returning an error callback.
Something like the following should be added in index.js:

zipfile.on('error', function (err) {
   return cb(err)
})
@geneh
Copy link
Author

geneh commented Mar 14, 2018

It looks like it should already be handled by #63

@aileen
Copy link

aileen commented May 11, 2018

We are facing the same issue at Ghost! Is it possible to get #63 or #67 merged anytime soon, please?

Thank you!

aileen added a commit to aileen/gscan that referenced this issue May 11, 2018
closes TryGhost#106

GScan didn't handle errors `.zip` file errors fully. Furthermore, there is a bug in one of the underlying dependencies, which does not handle and return an error event correctly. Until max-mapper/extract-zip#65 is fixed, we therefore need to use the forked version, which includes the fix here: https://github.com/AileenCGN/extract-zip.git
aileen added a commit to aileen/gscan that referenced this issue May 11, 2018
closes TryGhost#106

GScan didn't handle errors `.zip` file errors fully. Furthermore, there is a bug in one of the underlying dependencies, which does not handle and return an error event correctly. Until max-mapper/extract-zip#65 is fixed, we therefore need to use the forked version, which includes the fix here: https://github.com/AileenCGN/extract-zip.git
aileen added a commit to aileen/gscan that referenced this issue May 11, 2018
closes TryGhost#106

GScan didn't handle errors `.zip` file errors fully. Furthermore, there is a bug in one of the underlying dependencies, which does not handle and return an error event correctly. Until max-mapper/extract-zip#65 is fixed, we therefore need to use the forked version, which includes the fix here: https://github.com/AileenCGN/extract-zip.git
aileen added a commit to TryGhost/gscan that referenced this issue May 15, 2018
closes #106

GScan didn't handle errors `.zip` file errors fully. Furthermore, there is a bug in one of the underlying dependencies, which does not handle and return an error event correctly. Until max-mapper/extract-zip#65 is fixed, we therefore need to use the forked version, which includes the fix here: https://github.com/AileenCGN/extract-zip.git
aileen added a commit to aileen/Ghost that referenced this issue May 16, 2018
no issue

- fixes a bug, that didn't catch errors caused by corrupt zip files
- uses a fork of the `extract-zip` dependency with a bug fix for max-mapper/extract-zip#65
aileen added a commit to TryGhost/Ghost that referenced this issue May 16, 2018
no issue

- fixes a bug, that didn't catch errors caused by corrupt zip files
- uses a fork of the `extract-zip` dependency with a bug fix for max-mapper/extract-zip#65
ololoken pushed a commit to ololoken/Ghost that referenced this issue May 16, 2018
no issue

- fixes a bug, that didn't catch errors caused by corrupt zip files
- uses a fork of the `extract-zip` dependency with a bug fix for max-mapper/extract-zip#65
@aileen
Copy link

aileen commented Jan 3, 2019

@maxogden Just wondering how likely it is to get this issue resolved? 😊

aileen referenced this issue in TryGhost/extract-zip Jan 3, 2019
@malept
Copy link
Collaborator

malept commented Mar 25, 2020

Fixed in #67.

@malept malept closed this as completed Mar 25, 2020
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

No branches or pull requests

3 participants