Commit 98ebcaa
committed
site/worker.js: allowlist sister-podcasts.html
gen-podcast.py publish-site uploads sister-podcasts.html to R2
but the site worker's ALLOWED_EXACT_FILES set did not include
it, so every request 404'd even though the object was present.
Same class of bug as the earlier YYYY/MM/index.html regression.
Add sister-podcasts.html to the allowlist.
Add a regression test that walks every root-level file
publish-site uploads (index.html, sister-podcasts.html,
sponsor.html, queue.html, feed.xml, queue.xml) and asserts
isAllowedPath() returns true for each. This catches future
regressions where someone adds a new root file to the
publisher without updating the allowlist.
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>1 parent 44c604b commit 98ebcaa
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
0 commit comments