[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2021-02-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||27014


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27014
[Bug 27014] SIP2 cannot find patrons at checkin
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-06-11 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Status|Pushed to oldstable |Pushed to oldoldstable
 Version(s)|20.05.00, 19.11.06  |20.05.00, 19.11.06,
released in||19.05.12

--- Comment #37 from Victor Grousset/tuxayo  ---
Backported to 19.05.x branch for 19.05.12

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-06-11 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Status|Pushed to stable|Pushed to oldstable

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Joy Nelson  changed:

   What|Removed |Added

 Version(s)|20.05.00|20.05.00, 19.11.06
released in||
 Status|Pushed to master|Pushed to stable

--- Comment #36 from Joy Nelson  ---
backported to 19.11.x for 19.11.06

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #35 from Nick Clemens  ---
(In reply to Joy Nelson from comment #34)
> First commit when cherry-picked gives this error:

Indeed, I simply applied the patches directly from the report and that worked,
can you try that?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #34 from Joy Nelson  ---
First commit when cherry-picked gives this error:
<<< HEAD
 51 syslog('LOG_DEBUG', "ILS::Transaction::Checkout performing
checkout...");
 52 my $shelf  = $self->{item}->hold_shelf;
 53 my $barcode= $self->{item}->id;
 54 my $patron_barcode = $self->{patron}->id;
 55 my $overridden_duedate; # usually passed as undef to AddIssue
 56 $debug and warn "do_checkout: patron (" . $patron_barcode . ")";
 57 my $patron = Koha::Patrons->find( { cardnumber => $patron_barcode } );
 58 my $borrower = $patron->unblessed;
 59 $debug and warn "do_checkout borrower: . " . Dumper $borrower;
 60 ===
 61 siplog('LOG_DEBUG', "ILS::Transaction::Checkout performing
checkout...");
 62 my $shelf  = $self->{item}->hold_shelf;
 63 my $barcode= $self->{item}->id;
 64 my $patron =
Koha::Patrons->find($self->{patron}->{borrowernumber});
 65 my $overridden_duedate; # usually passed as undef to AddIssue
 66 $debug and warn "do_checkout borrower: . " . $patron->borrowernumber;
 67 >>> 23dd6651f8... Bug 23403: Remove cardnumber from SIP

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #33 from Nick Clemens  ---
(In reply to Joy Nelson from comment #32)
> Does not apply to 19.11.x- please rebase if needed.

Applies cleanly to 19.11 for me

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Joy Nelson  changed:

   What|Removed |Added

 CC||j...@bywatersolutions.com

--- Comment #32 from Joy Nelson  ---
Does not apply to 19.11.x- please rebase if needed.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #31 from Martin Renvoize  ---
Nice work everyone!

Pushed to master for 20.05

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Martin Renvoize  changed:

   What|Removed |Added

 Version(s)||20.05.00
released in||
 Status|Passed QA   |Pushed to master

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #30 from Jonathan Druart  
---
Nick, how confident are you with this change? Do you think it should be part of
20.05?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 Attachment #104316|0   |1
is obsolete||

--- Comment #29 from Nick Clemens  ---
Created attachment 104763
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104763=edit
Bug 23403: Catch other cases of ->{patron}

Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Nick Clemens 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 Attachment #104315|0   |1
is obsolete||

--- Comment #28 from Nick Clemens  ---
Created attachment 104762
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104762=edit
Bug 23403: List borrowernumber in the ILS::Patron fields

Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Nick Clemens 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 Attachment #104314|0   |1
is obsolete||

--- Comment #27 from Nick Clemens  ---
Created attachment 104761
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104761=edit
Bug 23403: Fix whitespace

Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Nick Clemens 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 Attachment #104313|0   |1
is obsolete||

--- Comment #26 from Nick Clemens  ---
Created attachment 104760
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104760=edit
Bug 23403: Remove cardnumber from SIP

== Test plan ==
1 - Have two patrons with userids and no cardnumber
2 - Note which of these has the higher borrower number
3 - Use the SIP cli emulator to connect and checkout a book to the patron with
higher borrowernumber
  See example after
4 - Note the book may checkout to the wrong patron!
5 - Apply patch
6 - Checkout to both patrons via sip
7 - The patrons get the correct checkouts

=== SIP CLI emulator ===
./misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1 \
-l CPL --patron 23529001000463 -m checkout --item 301259

translation: via the koha user term1, checkout item 301259 to
patron 23529001000463

Signed-off-by: Bouzid Fergani 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Nick Clemens 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

--- Comment #25 from Victor Grousset/tuxayo  ---
It didn't work and thanks to the patch it works! :D


To next person testing and re-uploading the patches:
I forgot to add in the test plan to run the following:
prove t/db_dependent/SIP/*

(not adding to not spam with email notification again)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Attachment #102859|0   |1
is obsolete||

--- Comment #24 from Victor Grousset/tuxayo  ---
Created attachment 104316
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104316=edit
Bug 23403: Catch other cases of ->{patron}

Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Attachment #101456|0   |1
is obsolete||

--- Comment #23 from Victor Grousset/tuxayo  ---
Created attachment 104315
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104315=edit
Bug 23403: List borrowernumber in the ILS::Patron fields

Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Attachment #101445|0   |1
is obsolete||

--- Comment #22 from Victor Grousset/tuxayo  ---
Created attachment 104314
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104314=edit
Bug 23403: Fix whitespace

Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Attachment #101304|0   |1
is obsolete||

--- Comment #21 from Victor Grousset/tuxayo  ---
Created attachment 104313
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104313=edit
Bug 23403: Remove cardnumber from SIP

== Test plan ==
1 - Have two patrons with userids and no cardnumber
2 - Note which of these has the higher borrower number
3 - Use the SIP cli emulator to connect and checkout a book to the patron with
higher borrowernumber
  See example after
4 - Note the book may checkout to the wrong patron!
5 - Apply patch
6 - Checkout to both patrons via sip
7 - The patrons get the correct checkouts

=== SIP CLI emulator ===
./misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1 \
-l CPL --patron 23529001000463 -m checkout --item 301259

translation: via the koha user term1, checkout item 301259 to
patron 23529001000463

Signed-off-by: Bouzid Fergani 
Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #20 from Victor Grousset/tuxayo  ---
Wait, I had to user the user dedicated to sip.
(term1 in koha-testing-docker)


kohadev-koha@b5a2119a1209:/kohadevbox/koha$ ./misc/sip_cli_emulator.pl -a
127.0.0.1 -p 6001 -su term1 -sp term1 -l CPL --patron 2352935676 -m
checkout --item 301297
Attempting socket connection to 127.0.0.1:6001...connected!
SEND: 9300CNterm1|COterm1|CPCPL|
READ: 941

Trying 'checkout'
SEND: 11YN2020050415582620200504   
155826AOCPL|AA2352935676|AB301297|ACterm1|BON|BIN|
READ: 121NNY20200504155827AOCPL|AA2352935676|AB301297|AJDream
of fair to middling women /|AH20200509235900|



The testing continues!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #19 from Victor Grousset/tuxayo  ---
> 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 2352935676 -m checkout --item 301297
Attempting socket connection to 127.0.0.1:6001...connected!
SEND: 9300CNkoha|COkoha|CPCPL|
READ: 941

Trying 'checkout'
SEND: 11YN2020050415462920200504   
154629AOCPL|AA2352935676|AB301297|ACkoha|BON|BIN|
Use of uninitialized value $data in concatenation (.) or string at
./misc/sip_cli_emulator.pl line 344,  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@b5a2119a1209:/kohadevbox/koha$ telnet localhost 6001
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
9300CNkoha|COkoha|CPCPL|
941
11YN2020050415462920200504   
154629AOCPL|AA2352935676|AB301297|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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-04-27 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #18 from Nick Clemens  ---
(In reply to Victor Grousset/tuxayo from comment #17)
> IIUC the test plan is
> - comment 0
> - prove t/db_dependent/SIP/*

That covers most of it, I think full testing would be:
1 - Have two patrons with userids and no cardnumber
2 - Note which of these has the higher borrower number
3 - Use the SIP cli emulator to connect and checkout a book to the patron with
higher borrowernumber
4 - Note the book may checkout to the wrong patron!
5 - Apply patch
6 - Checkout to both patrons via sip
7 - The patrons get the correct checkouts

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-04-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 CC||vic...@tuxayo.net

--- Comment #17 from Victor Grousset/tuxayo  ---
IIUC the test plan is
- comment 0
- prove t/db_dependent/SIP/*

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-04-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #16 from Nick Clemens  ---
Created attachment 102859
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102859=edit
Bug 23403: Catch other cases of ->{patron}

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-04-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 Status|Failed QA   |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #15 from Jonathan Druart  
---
There is still one test missing, I do not manage to fix it.

Could I get some help?

t/db_dependent/SIP/Message.t .. 1/4
#   Failed test 'Check screen msg'
#   at t/db_dependent/SIP/Message.t line 507.
#  got: 'Item not checked out'
# expected: 'Checkin failed'
# Looks like you failed 1 test of 29.
t/db_dependent/SIP/Message.t .. 3/4

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #14 from Jonathan Druart  
---
Created attachment 101456
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101456=edit
Bug 23403: List borrowernumber in the ILS::Patron fields

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #12 from Kyle M Hall  ---
Created attachment 101445
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101445=edit
Bug 23403: Fix whitespace

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Kyle M Hall  changed:

   What|Removed |Added

 Status|Signed Off  |Failed QA

--- Comment #13 from Kyle M Hall  ---
prove t/db_dependent/SIP/*
t/db_dependent/SIP/ILS.t .. 2/10 # Looks like you planned 5 tests
but ran 2.
t/db_dependent/SIP/ILS.t .. 10/10
#   Failed test 'cancel_hold'
#   at t/db_dependent/SIP/ILS.t line 124.
Cannot access 'borrowernumber' field of class 'C4::SIP::ILS::Patron' at
/kohadevbox/koha/C4/SIP/ILS/Transaction/Hold.pm line 81.
# Looks like your test exited with 255 just after 10.
t/db_dependent/SIP/ILS.t .. Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 1/10 subtests
t/db_dependent/SIP/Message.t .. 2/4
#   Failed test 'Check screen msg'
#   at t/db_dependent/SIP/Message.t line 507.
#  got: 'Item not checked out'
# expected: 'Checkin failed'
# Looks like you failed 1 test of 29.
t/db_dependent/SIP/Message.t .. 3/4
#   Failed test 'Checkin V2'
#   at t/db_dependent/SIP/Message.t line 74.
# Looks like you failed 1 test of 4.
t/db_dependent/SIP/Message.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/db_dependent/SIP/Patron.t ... ok
t/db_dependent/SIP/SIPServer.t  ok
t/db_dependent/SIP/Transaction.t .. 4/7 RECORD:69::100 at
/kohadevbox/koha/C4/SIP/ILS/Transaction/FeePayment.pm line 55.
t/db_dependent/SIP/Transaction.t .. 5/7 # Looks like you planned 7 tests
but ran 5.

#   Failed test 'cancel_hold'
#   at t/db_dependent/SIP/Transaction.t line 210.
Cannot access 'borrowernumber' field of class 'C4::SIP::ILS::Patron' at
/kohadevbox/koha/C4/SIP/ILS/Transaction/Hold.pm line 81.
# Looks like your test exited with 255 just after 6.
t/db_dependent/SIP/Transaction.t .. Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 2/7 subtests

Test Summary Report
---
t/db_dependent/SIP/ILS.t(Wstat: 65280 Tests: 10 Failed: 1)
  Failed test:  10
  Non-zero exit status: 255
t/db_dependent/SIP/Message.t(Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/db_dependent/SIP/Transaction.t (Wstat: 65280 Tests: 6 Failed: 1)
  Failed test:  6
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 7 tests but ran 6.
Files=5, Tests=26, 21 wallclock secs ( 0.04 usr  0.02 sys + 11.47 cusr  2.11
csys = 13.64 CPU)
Result: FAIL

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Bouzid Fergani  changed:

   What|Removed |Added

 Attachment #101303|0   |1
is obsolete||

--- Comment #11 from Bouzid Fergani  ---
Created attachment 101304
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101304=edit
Bug 23403: Remove cardnumber from SIP

Signed-off-by: Bouzid Fergani 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Bouzid Fergani  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2020-03-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Bouzid Fergani  changed:

   What|Removed |Added

  Attachment #96404|0   |1
is obsolete||

--- Comment #10 from Bouzid Fergani  ---
Created attachment 101303
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101303=edit
Bug 23403: Remove cardnumber from SIP

Signed-off-by: Bouzid Fergani 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-12-18 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Jonathan Druart  changed:

   What|Removed |Added

   Assignee|koha-b...@lists.koha-commun |jonathan.dru...@bugs.koha-c
   |ity.org |ommunity.org
 Status|NEW |Needs Signoff

--- Comment #9 from Jonathan Druart  
---
Thanks Nick, that helped a lot!

I think this patch is ready for testing, however I am not sure how it could be
tested to cover all the changes. Someone with a good knowledge in this script
could review it, then test could be potentially broken.
I think the following SIP commands would be a good test plan: checkin,
checkout, renew, place a hold on an item.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-12-18 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Jonathan Druart  changed:

   What|Removed |Added

  Attachment #95703|0   |1
is obsolete||

--- Comment #8 from Jonathan Druart  
---
Created attachment 96404
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96404=edit
Bug 23403: Remove cardnumber from SIP

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-12-17 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Nick Clemens  changed:

   What|Removed |Added

 CC||n...@bywatersolutions.com

--- Comment #7 from Nick Clemens  ---
It looks like this patch tries to switch to using the Koha patron object for
items, but during the checkout we are getting a SIP/ILS patron object, we can't
call borrowernumber on that (yet)

I think in general we should stick to the SIP object to avoid confusion and
just extend that object to have all the tools it needs (add borrowernumber to
the object)- perhaps if the id is unpopulated we can fall back, or we can just
always use the borrowernumber internally as a more standard id

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-12-10 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Jonathan Druart  changed:

   What|Removed |Added

 CC||k...@bywatersolutions.com

--- Comment #6 from Jonathan Druart  
---
Kyle, Colin,
Can you have a look at that patch please?
I am stuck at debugging it and founding what's wrong with it.
Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-11-22 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Jonathan Druart  changed:

   What|Removed |Added

   Assignee|koha-b...@lists.koha-commun |jonathan.dru...@bugs.koha-c
   |ity.org |ommunity.org
 CC||jonathan.dru...@bugs.koha-c
   ||ommunity.org
 Status|NEW |ASSIGNED

--- Comment #3 from Jonathan Druart  
---
Confirmed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-11-22 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

Jonathan Druart  changed:

   What|Removed |Added

 Status|ASSIGNED|NEW
   Assignee|jonathan.dru...@bugs.koha-c |koha-b...@lists.koha-commun
   |ommunity.org|ity.org

--- Comment #5 from Jonathan Druart  
---
I've tried but failed. There are many things broken apparently.

I ended up with that patch, it does not work but I have no idea why, I do not
get any useful warnings or errors. Someone with more knowledge in this code may
be able to finish it.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-11-22 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #4 from Jonathan Druart  
---
Created attachment 95703
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95703=edit
Bug 23403: Remove cardnumber from SIP

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-07-31 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #2 from Magnus Enger  ---
Possible solution: 

In C4::SIP::ILS::Transaction::Checkout::do_checkout(), find the patron based on
either cardnumber or userid (similar to how C4::SIP::ILS::Patron::new() does
it).

Or is doing Koha::Patrons->find twice for each checkout just plain wrong and we
should be passing the patron object around instead?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 23403] SIP2 lends to wrong patron if cardnumber is missing

2019-07-31 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23403

--- Comment #1 from Magnus Enger  ---
C4::SIP::ILS::Patron::new() looks for a patron based on either cardnumber or
userid, around line 41: 

 my $patron = Koha::Patrons->find( { cardnumber => $patron_id } )
   || Koha::Patrons->find( { userid => $patron_id } );

but then we set the id of the patron to the value of the barcode field, around
line 77: 

id   => $kp->{cardnumber},# to SIP, the id is the BARCODE, not userid

If there is no barcode, the id will be empty. Then in
C4::SIP::ILS::Transaction::Checkout::do_checkout() we use the id to find the
patron, around line 53:

my $patron_barcode = $self->{patron}->id;
...
my $patron = Koha::Patrons->find( { cardnumber => $patron_barcode } );

And I guess ->find( { cardnumber => '' } ) returns the first patron that has an
empty cardnumber.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/