[BUG] The temporary file name is longer than the target file name
@jovial-liu ci sta già lavorando.
Dal 8/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- tooling
Direzione di ricerca
Start by locating where the library constructs the temporary filename, then reproduce the issue with a target filename one character below the filesystem limit. Done means the temporary filename is no longer longer than the target and the long-name case avoids ENAMETOOLONG.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What / Why
This library creates a temp file by appending some hash to the target file name. This is bad because when the target file name is really long (but still inside the filesystem limit) the temp file name might get out of that limit and a ENAMETOOLONG error will happen
We started to have this issue in pnpm v5, where we have really long file names in the content-addressable storage.
Related issue: https://github.com/pnpm/pnpm/issues/2605
How
Current Behavior
The temp file name is the <target file>.<hash>
Steps to Reproduce
Write a file that has a name 1 character shorter than the accepted limit.
Expected Behavior
The temp file name is short or at least not longer than the target file name.
References
- Lingua principale
- JavaScript
- Stelle
- 256
- Fork
- 51
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di npm/write-file-atomic
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
npm/write-file-atomic#245 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 50/100
npm/write-file-atomic#243 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
npm/write-file-atomic#224 ·
-
PornographyAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
npm/write-file-atomic#189 · 6 reazioni ·
-
Bug Needs Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
npm/write-file-atomic#163 ·
Tutte le issue di npm/write-file-atomic
Issue simili
-
xsd:integer cast from a string rejects negative numbers, a leading + and surrounding whitespaceApertabug 🐛
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
comunica/comunica#1960 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-javascript#26203 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bytedance/flowgram.ai#1235 ·
I maintainer di solito rispondono entro 1 giorno