lukejacksonn / lukejacksonn/servor
Exception handling in the `decodeURI` function is required.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
error occurred and server is killed.
```
/usr/local/lib/node_modules/http-server-spa/server.js:76
const resource = path.join(cwd, root, decodeURI(uri));
^
URIError: URI malformed
at decodeURI ()
at Server. (/usr/local/lib/node_modules/http-server-spa/server.js:76:43)
at Server.emit (node:events:513:28)
at parserOnIncoming (node:_http_server:1091:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
```
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
Start with the request handler shown at /usr/local/lib/node_modules/http-server-spa/server.js:76 and reproduce the malformed URI request from the stack trace. Done means the server handles that URIError without terminating, with a regression check covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100