Bug #12367
closedBad session counting block user login after three session created
Description
The way http sessions are created and counted is not correct and can even lead to blocking an user from login:
What works: when an user is login, he can open new tabs (for example with middle-clicking on a link) on rudder and the session if correctly shared.
What does not work:
- log-in for a first time in tab1;
- in the same browser, open a new tab (tab2), go to the log-in page
- your are not redirected to the dashboard page (you should)
- log-in with the same user
- tab1 is delogged and come back to the login page
This is the behavior experienced in Rudder 4.1.
But it get worse:
- in tab1 or tab3, go to the loggin page and try to log-in
- tab2 is delogged,
- but there is ALSO a login error in tab1 (or tab3) saying that the maximum number of concurrent session is reached for that user.
- at that point, we didn't find a way for the user to be able to log again but to restart webapp.
So, it seems that:
1/ there is missing linked between current browser / user login status
2/ user session are not correctly destroyed in the mind of spring-security (or the couting is not correct).
At least the dead lock state is critical.
Updated by François ARMAND over 6 years ago
- Target version changed from 4.3.0~rc3 to 4.1.11
It was already a problem (but hidden) in 4.1
Updated by François ARMAND over 6 years ago
- Status changed from New to In progress
Updated by François ARMAND over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1891
Updated by François ARMAND over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|81dc7bcca7b4457db8b66f25fb776b57d4d2c2a6.
Updated by François ARMAND over 6 years ago
Applied in changeset rudder|eff224896d7d6f8edd440dfe4cc64863c416efec.
Updated by Alexis Mousset over 6 years ago
- Status changed from Pending release to Released
Updated by François ARMAND over 6 years ago
- Related to Bug #12481: When logged > 3 times, oldest session is logged out but not immediately added