Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

DeprecationWarning for `url.parse()` with Node.js v24

Aperta
#6,165 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

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

affects: main bug code task

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:

  1. 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DSpace/dspace-angular

Tutte le issue di DSpace/dspace-angular

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.