DeprecationWarning for `url.parse()` with Node.js v24
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- angular, node.js, typescript
- Ambito
- frontend
Direzione di ricerca
The trace points to XMLHttpRequest3._parseUrl in the built server bundle, but the issue does not identify the source file or other uses of url.parse(). Start by building and running dspace-angular with Node.js v24 and tracing the deprecation to locate the source call sites. Done when the deprecated calls responsible for the warning are addressed and the warning no longer appears on the first page load.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
When building and running current main (DSpace 11.0-next) on Node.js v24 the following warning is thrown:
(node:46830) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
By enabling tracing, this stack is shown on the first page load to http://localhost:4000/home:
(node:48913) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
at Object.urlParse [as parse] (node:url:136:13)
at XMLHttpRequest3._parseUrl (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:3270228)
at XMLHttpRequest3.open (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:3263395)
at Observable2._subscribe (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:3880057)
at Observable2._trySubscribe (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:2991137)
at /home/aorth/src/git/dspace-angular/dist/server/main.js:1:2991029
at Object.errorContext (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:3183455)
at Observable2.subscribe (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:2990858)
at /home/aorth/src/git/dspace-angular/dist/server/main.js:1:3121340
at OperatorSubscriber2._this._next (/home/aorth/src/git/dspace-angular/dist/server/main.js:1:3048844
I guess there are a handful of places we are using this deprecated behavior.
To Reproduce
Steps to reproduce the behavior:
- Build dspace-angular with Node.js v24
- Lingua principale
- TypeScript
- Stelle
- 180
- Fork
- 577
- Merge medio
- 2g 12h
- PR unite (30g)
- 111
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un 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 DSpace/dspace-angular
-
affects: 10.x affects: 9.x bug component: submission Difficulty: Low help wanted ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
DSpace/dspace-angular#6412 ·
I maintainer di solito rispondono entro 3 giorni
-
accessibility affects: 10.x affects: 8.x affects: 9.x bug help wanted ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DSpace/dspace-angular#6364 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Author browse links on item page open in a new tab, unlike other browse linksForse già presa @jesielviana l’ha presa 17 giorni fa. Apertaaffects: main bug component: Item low priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DSpace/dspace-angular#6268 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
Mathjax single dollar sign delimiter configuration causes unintentional math rendering in abstractsApertabug needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DSpace/dspace-angular#6263 ·
I maintainer di solito rispondono entro 3 giorni
-
UI spacing regression on ds-generic-item-page-field (extra spaces around metadata values) in v10.xApertaaffects: 10.x affects: main bug component: Item ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DSpace/dspace-angular#6254 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di DSpace/dspace-angular
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
outline/outline#14348 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Agent import retains quotes in .env API keys followed by inline commentsForse già presa @yxr-2025 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
elie222/rakazo#2322 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
awslabs/visual-asset-management-system#804 ·
I maintainer di solito rispondono entro 1 giorno
-
用户目录有单引号时,热加载时YAML解析崩溃Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
dsh-market/dsh-market#1027 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno