rubycas/rubycas-client — Issue #30: Wrong variable name
Author: Buguito
Created: 2011-12-28 20:25:51+00:00
State: open

You're recieving st as parameter, and using "si" in the read_service_session_lookup(si) call, and also at the logger. This crashes obviously.

Happened to me while attempting to use the single sign out. Without this fixed, i don't know how anyone could make that feature work.

def get_session_for_service_ticket(st)
session_id = read_service_session_lookup(si)
if session_id
session = ActiveRecord::SessionStore::Session.find_by_session_id(session_id)
else
log.warn("Couldn't destroy session with SessionIndex #{si} because no corresponding session id could be looked up.")
end
[session_id, session]
end

I'm using the gem 2.3.8 btw.

Best regards, Alan //