Files
plane/apps/api
Manish Gupta 26db9ea57b [SECUR-236] fix: reject per_page=0 in get_per_page, not just negatives
The negative-per_page guard added earlier in this PR let per_page=0 through
unchanged. A zero value still reaches OffsetPaginator.get_result(), where
math.ceil(count / limit) divides by the limit and raises an unhandled
ZeroDivisionError (HTTP 500) — the same unhandled-crash class this PR closes
for negative values, just with a different trigger. Tighten the guard to
per_page <= 0 and correct the regression test that previously asserted 0 was
accepted.

Co-authored-by: Plane AI <noreply@plane.so>
2026-08-27 10:48:38 +05:30
..
2025-12-05 16:03:51 +05:30
2026-01-27 13:54:22 +05:30
2025-07-04 15:32:21 +05:30
2026-01-27 13:54:22 +05:30