[Bug 44247] New: sip_cli_emulator.pl sends fee_paid with an empty institution id (AO)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44247 Bug ID: 44247 Summary: sip_cli_emulator.pl sends fee_paid with an empty institution id (AO) Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: SIP2 Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- The emulator's fee_paid handler passes the institution as institution_id, like every other message, but build_fee_paid_command_message reads $params->{location_code}, which it is never given. The fee paid message (37) goes out with an empty AO field: 37...0100USDBV1.00|AO|AA<patron>|... and the SIP server logs: handle_fee_paid: received institution '', expected '<institution>'. The payment is still taken, so it only matters when testing a server with the emulator. Seen on Koha 26.05.02 against a running SIP server; the same line is on main (c8e8025). Bug 43848 moves this builder into a shared module and keeps the same line (build_fee_paid), so whichever goes in second needs the same one-word change. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44247 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212477 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212477&action=edit Bug 44247: sip_cli_emulator.pl sends fee_paid with an empty institution Bug 44247: sip_cli_emulator.pl sends fee_paid with an empty institution The fee_paid handler passes the institution as institution_id, like every other message, but build_fee_paid_command_message reads $params->{location_code}, which it is never given. The message goes out with an empty AO field, and the SIP server logs: handle_fee_paid: received institution '', expected '<institution>' Test plan: 1. perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su <login> -sp <password> -l <institution> --patron <cardnumber> -m fee_paid --fee-amount 0.01 2. The SEND line for message 37 has "AO|" (empty), and sip-output.log says received institution ''. 3. Apply the patch, repeat 1: "AO<institution>|", and no such line in the log. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44247 babar junaid <babarjunaid1122@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |babarjunaid1122@gmail.com |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44247 babar junaid <babarjunaid1122@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=43848 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org