DeprecationWarning for `url.parse()` with Node.js v24
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- angular, node.js, typescript
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 180
- Forks
- 577
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 100
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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.
More from DSpace/dspace-angular
-
accessibility affects: 10.x affects: main bug ux
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DSpace/dspace-angular#6531 · 1 comment ·
Maintainers usually reply within 1 day
-
accessibility affects: 10.x affects: main bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
DSpace/dspace-angular#6530 ·
Maintainers usually reply within 1 day
-
Submission Form Allows Deletion of All Repeating Item EntriesPossibly taken @Rowan-McKereghan claimed this 5 days ago. Openaffects: 8.x affects: 9.x bug component: submission
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DSpace/dspace-angular#6511 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Visual issues with qualdrop fieldsPossibly taken @DanGastardelli claimed this 15 days ago. Openaffects: 10.x affects: 9.x bug claimed: Acervos Digitais component: submission Difficulty: Low ux
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
DSpace/dspace-angular#6412 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Facet headings have incorrect clickable area to expand/collapsePossibly taken @jesielviana claimed this 12 days ago. Openaccessibility affects: 10.x affects: 8.x affects: 9.x bug ux
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DSpace/dspace-angular#6364 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in DSpace/dspace-angular
Similar issues
-
bug parity
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
WenyuChiou/agent-board#1489 ·
Maintainers usually reply within 1 day
-
area: bazaar bug complexity: medium
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
accensa/x402-facilitator-stellar#779 ·
Maintainers usually reply within 1 day
-
bug good first issue P4 size:S web-ui
Difficulty 2/5 Half a day Newbie friendliness 85/100
josephfung/curia#2600 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cloudflare/partykit#444 ·