The CommandBoard web server decodes static paths with decodeURIComponent(pathname). A malformed percent-encoded path can throw URIError before the server sends a client response.
Repro path:
- Build/start the CommandBoard web server.
- Request a malformed encoded URL such as /%E0%A4%A.
- The path decoding throws instead of returning a clean client error.
Expected: malformed path encoding should return a 400 response.
Actual: the server can throw while resolving the static path.
A focused fix and regression test are coming in a PR.
The CommandBoard web server decodes static paths with decodeURIComponent(pathname). A malformed percent-encoded path can throw URIError before the server sends a client response.
Repro path:
Expected: malformed path encoding should return a 400 response.
Actual: the server can throw while resolving the static path.
A focused fix and regression test are coming in a PR.