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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to