[Koha-bugs] [Bug 26271] New: Call to /api/v1/patrons/<patron_id>/account returns 500 error if manager_id is NULL

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 21 15:21:33 CEST 2020


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

            Bug ID: 26271
           Summary: Call to /api/v1/patrons/<patron_id>/account returns
                    500 error if manager_id is NULL
 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: joonas.kylmala at helsinki.fi

Making a call to /api/v1/patrons/<patron_id>/account where the patron has an
accountline with manager_id = NULL causes the request to fail with error code
500 because the swagger spec defines only integer as user_id/manager_id type.
It should also accept null types because fines.pl cron seems to create
accountlines with manager_id=NULL.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list