rabadon

overview / findings / expressjs/express

expressjs/express: 4 upstream defects

Each entry is a real fix from the project's own history. Apply its patch and run the project's own suite, and the tests written in that same upstream commit fall.

the suite it was checked against

languagetestsgreen run, sflaky runstest files locked
node1,2601.853/1091

One of the pinned external suites the repair arbiter was run against, as listed on the benchmarks page (fixed values in site/build.py).

the defects

fix: don't render redirect values in anchor href

2 source line(s), 4 test(s) fall, deterministic over three runs. upstream fix 54271f69b511. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/response.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/express-redirect-no-anchor-href.patch && <the project's own suite>

fix(res.send): add Content-Length header only if Transfer-Encoding is not present (#4893)

7 source line(s), 4 test(s) fall, deterministic over three runs. upstream fix 18e5985b8a9d. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/response.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/express-res-send-content-length-transfer-encoding.patch && <the project's own suite>

Fix routing requests without method

9 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix 74beeac0718c. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/router/route.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/express-route-missing-method.patch && <the project's own suite>

Fix incorrect middleware execution with unanchored RegExps

6 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix 99a369f3d51b. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/router/index.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/express-unanchored-regexp-prefix-match.patch && <the project's own suite>