[Koha-bugs] [Bug 27330] Wrong return status when no enrollments in club holds

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 4 15:37:14 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27330

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 114799
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114799&action=edit
Bug 27330: Return 403 if club has no enrollments

This patch makes the controller script return a 403 as it should [1]
instead of a plain 500.

To test:
1. Apply the regressions tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/clubs_holds.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

[1] https://www.restapitutorial.com/httpstatuscodes.html

-- 
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