Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fadookie/tgz-repro
Repro case for node-tar.gz lib bug
https://github.com/fadookie/tgz-repro
Last synced: about 1 month ago
JSON representation
Repro case for node-tar.gz lib bug
- Host: GitHub
- URL: https://github.com/fadookie/tgz-repro
- Owner: fadookie
- Created: 2017-03-09T04:10:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T04:25:38.000Z (almost 8 years ago)
- Last Synced: 2024-10-14T06:12:40.672Z (3 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Repro case for node-tar.gz lib bug
Issue: https://github.com/alanhoff/node-tar.gz/issues/44
## Running the repro case
Optional: `nvm use` (I tested this on node v6.9.4). Then:```
npm install && npm test
```Expected: Promise only resolves when extract operation is complete, or rejects on error.
Actual: Promise resolves, then error callback fires (because it's a `tar.bz2` file):
```
$ npm test> [email protected] test /Users/eliot/Dev/pear/tgz-repro
> node test.js 'data.tar.bz2'extract finished!!
done?
error callback fired: { Error: incorrect header check
at Zlib._handle.onerror (zlib.js:370:17)
cause:
{ Error: incorrect header check
at Zlib._handle.onerror (zlib.js:370:17) errno: -3, code: 'Z_DATA_ERROR' },
isOperational: true,
errno: -3,
code: 'Z_DATA_ERROR' }
```## Additional repro case
```
npm run test-permission
```This can be used to reproduce a permissions error when an archive operation would otherwise overwrite a file.