lukejacksonn / lukejacksonn/servor

Exception handling in the `decodeURI` function is required.

Open
#85 1 comment 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.