-
Notifications
You must be signed in to change notification settings - Fork 38.5k
WebSession/WebSessionStore API are silent on saving a session that may have been invalidated [SPR-17051] #21589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Rossen Stoyanchev commented Several items:
Vedran Pavic I am wondering how to best address this? We could add a
|
Vedran Pavic commented Thanks for the ping Rossen Stoyanchev - between the two I think making the contract of I'd be also interested to hear from Rob Winch on this topic. |
Rossen Stoyanchev commented Modified title, originally: |
Rossen Stoyanchev commented One extra thought... wouldn't the problem still exist even with a check before |
Vedran Pavic commented Yes, I agree - that's why I referred to the option of making it responsibility of Besides that, we've been recently hit with a few other reports involving race condition scenarios, where Spring Session's |
Rossen Stoyanchev commented I've updated WebSession. Hopefully that makes sense but if not let me know. I've also created Reactor Netty #393 to keep track of why the handshake request does not complete until the end of the WebSocket session. |
Vedran Pavic commented Looks good Rossen Stoyanchev. I've just opened gh-1888 to apply some minor polish. |
Yuriy Sazonets opened SPR-17051 and commented
DefaultWebSessionManager#save checks whether previously retrieved session is active (started) and not expired, but doesn't check if it actually exists in the session store.
Consider scenario:
This causes major problems in production code. More details (and sample project to reproduce the issue) here: spring-projects/spring-session#1111
Affects: 5.0.7
The text was updated successfully, but these errors were encountered: