[Koha-bugs] [Bug 27330] New: 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 14:42:55 CET 2021


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

            Bug ID: 27330
           Summary: Wrong return status when no enrollments in club holds
 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: tomascohen at gmail.com

It seems we are expecting a 500 if the club doesn't have any enrollments. A 403
should be returned instead. And it highlights some bad logic in the controller,
as it is not catching the narrower exception, but the broader (Exceptions
Koha::Club::Hold::add can throw) so some error conditions are being treated
wrongly (i.e. bad parameters vs. no enrollments on the club).

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