[open-ils-commits] [GIT] Evergreen ILS branch master updated. 58d4b4aaf372a51d4cccc9d9d5b37aa0281a9aab

Evergreen Git git at git.evergreen-ils.org
Fri Mar 15 13:38:55 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  58d4b4aaf372a51d4cccc9d9d5b37aa0281a9aab (commit)
      from  c63d3edba42b2dfcecc96a1c5bff5a0564978083 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 58d4b4aaf372a51d4cccc9d9d5b37aa0281a9aab
Author: Bill Erickson <berick at esilibrary.com>
Date:   Fri Aug 3 15:08:51 2012 -0400

    SIP re-login fetches correct auth session
    
    After a login session expires and the SIP server logs in again to
    acquire a new authtoken, be sure to use the new authtoken when fetching
    the new session object.  Otherwise, the login_session is left undef and
    you may see errors like this when checking in items:
    
    Can't call method "ws_ou" on an undefined value at
    /usr/local/share/perl/5.10.1/OpenILS/SIP/Transaction/Checkin.pm line 77.
    
    Incidentally, the checkin code is the only code that references
    $sip_handler->{login_session}.  And the problem listed above only occurs
    when the login session expires just prior to a checkin call.  In any
    other scenario, the login_session would ultimately get repaired.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm
index 3737506..da2528c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm
@@ -244,9 +244,11 @@ sub login {
     my $key = $response->{payload}->{authtoken};
     syslog('LOG_INFO', "OILS: Login succeeded for $username : authkey = $key");
 
+    $self->{authtoken} = $key;
+
     $self->fetch_session; # to cache the login
 
-    return $self->{authtoken} = $key;
+    return $key;
 }
 
 #

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/perlmods/lib/OpenILS/SIP.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list