[Koha-bugs] [Bug 24229] /items API tests fail on Ubuntu 18.04
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 21 15:29:48 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24229
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #105182|0 |1
is obsolete| |
--- Comment #13 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 105193
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105193&action=edit
Bug 24229: Avoid fetching ALL items in test
I'm not sure what we need to test here, besides we get results. I'm
pretty sure we shouldn't allow a plain GET return all objects because it
could cause a DOS very easily. But it certainly belongs to a separate
bug/discussion.
In this case, I put a constraint on the items domain (by using
_per_page=10 in the query params) so it won't happen that under certain
conditions the user agent used by Test::Mojo time outs.
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list