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
if (!"ERR no such key".equals(NestedExceptionUtils.getMostSpecificCause(ex).getMessage())) {
// NestedExceptionUtils.getMostSpecificCause(ex).getMessage() →// "ERR no such key. channel: [id: 0xec125091, L:/100.96.17.194:46330 - R:redis/100.67.2.163:6379] command: (RENAME), params: [[115, 112, 114, 105, 110, 103, 58, 115, 101, 115, ...], [115, 112, 114, 105, 110, 103, 58, 115, 101, 115, ...]]"throwex;
}
and the exception bubbles up.
To Reproduce
Make concurrent requests with the same session ID, which both result in changing the session ID—typically via session fixation prevention.
Expected behavior
The session repository gracefully handle concurrent requests that change the session ID.
The text was updated successfully, but these errors were encountered:
Hi @eager ! We just encountered this same issue on our production environment. Were you able to find a workaround ? I wonder if it's safe to catch (and discard) it on our end until this is handled properly by spring-session.
Hi folks, I think we should consider providing some strategy to handle the scenario where a concurrent modification might happen.
However, I am not discarding changing the condition to use startsWith instead of equals. Is anyone else aware if there is another Redis client that might change the exception message?
This is same underlying issue as #1270, with a small twist—the exception message has more detail.
Describe the bug
We’re using
RedissonConnectionFactory
with ourRedisOperationsSessionRepository
(we’re still on Spring Session 2.1.13). Redisson’s exception handling adds a little extra context to the exception message, so this check inhandleErrNoSuchKeyError
fails:and the exception bubbles up.
To Reproduce
Make concurrent requests with the same session ID, which both result in changing the session ID—typically via session fixation prevention.
Expected behavior
The session repository gracefully handle concurrent requests that change the session ID.
The text was updated successfully, but these errors were encountered: