Bug 39139 - SIP2 patron lookups can fail if no active currency is set
Summary: SIP2 patron lookups can fail if no active currency is set
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: SIP2 (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-13 20:24 UTC by Galen Charlton
Modified: 2025-02-13 20:24 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Galen Charlton 2025-02-13 20:24:34 UTC
If no active currency is set, SIIP2 patron information lookups can fail to return a response. This was observed for message 23 responses, but probably also affects message 63 responses.

The problem is line 128 of C4/SIP/ILS/Patron.pm:

  my $currency = substr Koha::Acquisition::Currencies->get_active->currency, 0, 3;

If no currency is active, an exception is thrown and the SIP protocol loop terminates.

This likely affects all releases that include the patches for bug 23426