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

fix: delay session expiration handling to prevent canceling ongoing navigation (#19983) (CP: 23.5) #20455

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

mcollovati
Copy link
Collaborator

Attempts to fix the synchronization issue related to the usage of the Login reported in #12640. The Login component sends the UIDL request for the login event to the server and concurrently submits the form. If processing the form submission performs a session ID change and a request redirect, the UIDL requests might fail with a session expiration response. The Flow client then can cancel the first redirect because it reloads the page due to the session expiration. Lastly, the beacon request hits again a valid session, but a resynchronization is triggered because the previous UIDL request was rejected.

This change delays a bit the session expiration handling on Flow client, to allow a potential redirect to complete without being cancelled. However, the client application is immediately set in TERMINATED state.

…avigation (#19983)

Attempts to fix the synchronization issue related to the usage of the Login reported in #12640.
The Login component sends the UIDL request for the login event to the server and concurrently submits the form.
If processing the form submission performs a session ID change and a request redirect, the UIDL requests might fail with a session expiration response. The Flow client then can cancel the first redirect because it reloads the page due to the session expiration. Lastly, the beacon request hits again a valid session, but a resynchronization is triggered because the previous UIDL request was rejected.

This change delays a bit the session expiration handling on Flow client, to allow a potential redirect to complete without being cancelled. However, the client application is immediately set in TERMINATED state.
Copy link

sonarcloud bot commented Nov 12, 2024

Copy link

Test Results

  963 files  ± 0    963 suites  ±0   53m 15s ⏱️ + 5m 14s
6 310 tests ± 0  6 261 ✅ ± 0  49 💤 ±0  0 ❌ ±0 
6 572 runs  +14  6 515 ✅ +12  57 💤 +2  0 ❌ ±0 

Results for commit a1e37fd. ± Comparison against base commit 584676e.

@tepi tepi merged commit 6bd246e into 23.5 Nov 12, 2024
26 checks passed
@tepi tepi deleted the cherry/cherrypick-19983-to-23.5 branch November 12, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants