LP#1646638 - Fix SIP timeouts due to invalid sessions
authorDan Scott <dscott@laurentian.ca>
Thu, 1 Dec 2016 22:24:01 +0000 (17:24 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 May 2017 13:11:06 +0000 (09:11 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm

index 81307f4..998ea85 100644 (file)
@@ -295,12 +295,14 @@ sub find_patron {
     my $key  =  (@_ > 1) ? shift : 'barcode';  # if we have multiple args, the first is the key index (default barcode)
     my $patron_id = shift;
 
+    $self->verify_session;
     return OpenILS::SIP::Patron->new($key => $patron_id, authtoken => $self->{authtoken}, @_);
 }
 
 
 sub find_item {
     my $self = shift;
+    $self->verify_session;
     return OpenILS::SIP::Item->new(@_);
 }