From 1776eef8136ee1e12ddaa4b6405bf4f40b3fe5df Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 6 Nov 2014 16:03:36 -0500 Subject: [PATCH] LP#1390225: Fail to care about errors from auth.session.delete We're just tossing this call over the wall and moving on. We don't care if the session wasn't there to delete or even if we didn't pass a session to the server. Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index f9afad443a..bdeda0e1ab 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -459,11 +459,13 @@ sub load_logout { # while logged in, go ahead and clear it out. $self->clear_anon_cache; - $U->simplereq( - 'open-ils.auth', - 'open-ils.auth.session.delete', - $self->cgi->cookie(COOKIE_SES) - ); + try { # a missing auth token will cause an ugly explosion + $U->simplereq( + 'open-ils.auth', + 'open-ils.auth.session.delete', + $self->cgi->cookie(COOKIE_SES) + ); + } catch Error with {}; return $self->generic_redirect( $redirect_to || $self->ctx->{home_page}, -- 2.11.0