Skip to content
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

Issue #12070 fix session lastAccessedTime and isNew #12078

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

janbartel
Copy link
Contributor

For ee8/9 the HttpSession was not being updated correctly upon receipt of a new request referencing an existing session. The lastAccessedTime, isNew and expiryTime fields were not being updated correctly after the introduction of cross-context dispatch in PR #11451.

@janbartel janbartel added the Bug For general bugs on Jetty side label Jul 23, 2024
@janbartel janbartel requested review from gregw and joakime July 23, 2024 07:25
@janbartel janbartel self-assigned this Jul 23, 2024
Copy link
Contributor

@joakime joakime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.
And the unit tests will help prevent regression in the future too.

Do we have the same issue on ee10 / ee11?

coreRequest.setManagedSession(currentRequestedSession.session());
currentSession = currentRequestedSession.session();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple fix. nice.

@janbartel
Copy link
Contributor Author

Looking good. And the unit tests will help prevent regression in the future too.

Do we have the same issue on ee10 / ee11?

Nope, it's implemented completely differently. In any case, I added an ee10 test for it, just in case ;)

@janbartel janbartel merged commit 5c6e27f into jetty-12.0.x Jul 24, 2024
10 of 11 checks passed
@janbartel janbartel deleted the jetty-12.0.x-12070-session-access-time branch July 24, 2024 01:07
@joakime joakime linked an issue Jul 24, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

HttpSession lastAccessedTime and isNew not getting updated
3 participants