1.2.0 tarballs served from npm unextractable by gnu tar
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 40
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hi, not sure how it's happened, but:
$ wget https://registry.npmjs.org/fd-lock/-/fd-lock-1.2.0.tgz
...
$ gunzip fd-lock-1.2.0.tgz
$ tar --version
tar (GNU tar) 1.34
...
$ tar -xvf fd-lock-1.2.0.tar
package/LICENSE
tar: package/LICENSE: Cannot open: Permission denied
package/binding.cc
tar: package/binding.cc: Cannot open: Permission denied
package/binding.gyp
tar: package/binding.gyp: Cannot open: Permission denied
package/example.js
tar: package/example.js: Cannot open: Permission denied
package/index.js
tar: package/index.js: Cannot open: Permission denied
package/test.js
tar: package/test.js: Cannot open: Permission denied
package/package.json
tar: package/package.json: Cannot open: Permission denied
package/README.md
...
...
Looking at the tar header blocks the only unusual thing I can see is the "owner" fields being null bytes. Would have thought there would be a tar flag that would let this be ignored but can't find one if so.
Just thought you'd like to know..
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the npm download and GNU tar extraction described in the report, then inspect the published archive entries for package/LICENSE, package/binding.cc, package/binding.gyp, package/index.js, package/test.js, and package/package.json. Compare the archive metadata with a working package and determine what packaging change is needed so GNU tar can extract the files without permission errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100