Bug 39139

Summary: SIP2 patron lookups can fail if no active currency is set
Product: Koha Reporter: Galen Charlton <gmcharlt>
Component: SIP2Assignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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