Repository navigation
Commit bb1aa2e
committed
fix(ready): reject encoded /readyz variants and assert the JSON 404 contract
Compare the DECODED pathname for /readyz routing so an encoded variant
like /readyz%2F (which decodes to /readyz/) cannot bypass the exact-path
rejection and reach the GUI fallback (serveGuiFile decodes the pathname
and would serve index.html with 200). GET, POST, and OPTIONS on encoded
variants all answer the deterministic JSON 404.
Strengthen the OPTIONS regression test to assert the JSON 404 body
(content-type, error.type, and the path-specific error.message) and add
encoded-path coverage for GET, POST, and OPTIONS.1 parent 640488c commit bb1aa2e
3 files changed
Lines changed: 36 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
396 | 394 | | |
397 | 395 | | |
398 | 396 | | |
| |||
550 | 548 | | |
551 | 549 | | |
552 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
553 | 563 | | |
554 | 564 | | |
555 | 565 | | |
556 | 566 | | |
557 | | - | |
| 567 | + | |
558 | 568 | | |
559 | 569 | | |
560 | 570 | | |
| |||
619 | 629 | | |
620 | 630 | | |
621 | 631 | | |
622 | | - | |
623 | | - | |
| 632 | + | |
| 633 | + | |
624 | 634 | | |
625 | 635 | | |
626 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
628 | | - | |
| 627 | + | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
976 | 981 | | |
977 | 982 | | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
978 | 997 | | |
979 | 998 | | |
980 | 999 | | |
| |||
0 commit comments