[Koha-bugs] [Bug 35129] New: REST API: _per_page=0 crashes on Illegal division by zero
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 23 14:11:42 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35129
Bug ID: 35129
Summary: REST API: _per_page=0 crashes on Illegal division by
zero
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
CC: tomascohen at gmail.com
>From IRC:
[14:08] <marcelr> Nice /api/v1/patrons?_page=1&_per_page=0 just returns me a
500 (ISE)
[14:09] <marcelr> not tested yet :)
[14:10] <marcelr> [ERROR] GET /api/v1/patrons: unhandled exception
(Mojo::Exception)<<Illegal division by zero at
/usr/share/koha/Koha/REST/Plugin/Pagination.pm line 106.>>
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list