You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bare rescue (which rescues all exceptions that inherit from StandardError) in RedisSessionStore#load_session_from_redis.
This is extremely bad practice, because it will cause a huge variety of exceptions to be silently ignored, including virtually all exceptions generated by any ruby library, including ThreadError, LocalJumpError, etc.
This is just the built in tree of exceptions that would be silently swallowed:
StandardErrorFiberErrorThreadErrorIndexErrorStopIterationKeyErrorMath::DomainErrorLocalJumpErrorIOErrorEOFErrorEncodingErrorEncoding::ConverterNotFoundErrorEncoding::InvalidByteSequenceErrorEncoding::UndefinedConversionErrorEncoding::CompatibilityErrorRegexpErrorSystemCallErrorErrno::ERPCMISMATCH# ... lots of system call errors ...RangeErrorFloatDomainErrorZeroDivisionErrorRuntimeErrorGem::Exception# ... lots of gem errors ...NameErrorNoMethodErrorArgumentErrorGem::Requirement::BadRequirementErrorTypeError
The text was updated successfully, but these errors were encountered:
There is a bare rescue (which rescues all exceptions that inherit from
StandardError
) inRedisSessionStore#load_session_from_redis
.This is extremely bad practice, because it will cause a huge variety of exceptions to be silently ignored, including virtually all exceptions generated by any ruby library, including
ThreadError
,LocalJumpError
, etc.https://github.com/roidrage/redis-session-store/blame/bcf779297078db78d7e17b868c40b1ffd4dea243/lib/redis-session-store.rb#L106
This is just the built in tree of exceptions that would be silently swallowed:
The text was updated successfully, but these errors were encountered: