Commit 4787951
committed
Reject list-of-non-strings at boundary instead of silently passing through
Live stress test found that `parameter_code=[60, 65]` (ints) was silently
passed to the OGC API, surfacing as a confusing JSONDecodeError when the
server returned an error page. The "list-of-non-str pass-through" clause
in `_get_args` was a defensive shortcut intended for `bbox`/`boundingBox`
(which are `list[float]`), but those params are already covered by
`_NO_NORMALIZE_PARAMS`, making the clause redundant AND bug-silencing.
Now `_normalize_str_iterable` runs for every non-listed list-shaped
param, raising TypeError with the offending element type — same path
that already handles `monitoring_location_id=[..., 12345]`.1 parent bb84662 commit 4787951
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
1333 | 1332 | | |
1334 | 1333 | | |
1335 | 1334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
0 commit comments