We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AtmosphereRequest#cloneRequest puts the fake session in the session builder:
.session(copySession ? new FakeHttpSession(request.getSession(true)) : null);
In the AtmosphereRequest$Builder this is executed:
if (NoOpsRequest.class.isAssignableFrom(request.getClass())) { NoOpsRequest.class.cast(request).fake = session; } else { hackedJettySession = session; }
And since at the time of call, the request is no NoOpsRequest, the session will be put in hackedJettySession.
The only way I can get the session now is the following (Groovy): value = cometResource.request.b.hackedJettySession.getAttribute(key)
This works. However, on Jetty, this works, too: value = cometResource.session.getAttribute(key)
It would be nice to have it this simple on Tomcat, too.
The text was updated successfully, but these errors were encountered:
Agree. Looking.
Sorry, something went wrong.
Fix for #520 cloneRequest puts copied session in wrong object on Tomc…
3452540
…at 7
No branches or pull requests
AtmosphereRequest#cloneRequest puts the fake session in the session builder:
In the AtmosphereRequest$Builder this is executed:
And since at the time of call, the request is no NoOpsRequest, the session will be put in hackedJettySession.
The only way I can get the session now is the following (Groovy):
value = cometResource.request.b.hackedJettySession.getAttribute(key)
This works. However, on Jetty, this works, too:
value = cometResource.session.getAttribute(key)
It would be nice to have it this simple on Tomcat, too.
The text was updated successfully, but these errors were encountered: