[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 4 17:57:20 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403
--- Comment #19 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
> 3 - Use the SIP cli emulator to connect and checkout a book to the patron with higher borrowernumber
Should something like that do? I'm not sure I'm using well the emulator. And I
barely know SIP to manually check whether the command is correct.
./misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su koha -sp koha -l CPL
--patron 23529000035676 -m checkout --item 39999000001297
Attempting socket connection to 127.0.0.1:6001...connected!
SEND: 9300CNkoha|COkoha|CPCPL|
READ: 941
Trying 'checkout'
SEND: 11YN20200504 15462920200504
154629AOCPL|AA23529000035676|AB39999000001297|ACkoha|BON|BIN|
Use of uninitialized value $data in concatenation (.) or string at
./misc/sip_cli_emulator.pl line 344, <GEN0> chunk 1.
READ:
https://gitlab.com/koha-community/Koha/-/blob/a6985d167e11eaafee985b51cb0188a693405af5/misc/sip_cli_emulator.pl#L344
Now, trying with telnet by copying the message to read the server response.
kohadev-koha at b5a2119a1209:/kohadevbox/koha$ telnet localhost 6001
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
9300CNkoha|COkoha|CPCPL|
941
11YN20200504 15462920200504
154629AOCPL|AA23529000035676|AB39999000001297|ACkoha|BON|BIN|
Connection closed by foreign host.
That's rude! *pouts*
Doing the same checkout via the UI work.
- same koha librarian user (superlibrarian)
- same barcode
- same patron
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list