Commit 017e8ca
authored
fix(ses): reject malformed startDate/endDate in list_suppressed_destinations (#5461)
startDate/endDate were passed through new Date(...) with no validity
check, so a malformed non-empty string became an Invalid Date and was
still forwarded to AWS, surfacing as a generic 500. The contract now
rejects unparseable date strings with a clear 400.1 parent 11be2a3 commit 017e8ca
1 file changed
Lines changed: 12 additions & 2 deletions
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
| |||
0 commit comments