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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

@mcollovati mcollovati force-pushed the issues/12640_handle_invalid_clientId_on_unload branch from c969f1c to 7f305dc Compare September 18, 2024 14:54
Copy link

github-actions bot commented Sep 18, 2024

Test Results

1 137 files  ± 0  1 137 suites  ±0   1h 9m 14s ⏱️ - 1m 6s
7 399 tests ± 0  7 349 ✅ ± 0  50 💤 ±0  0 ❌ ±0 
7 770 runs  +18  7 710 ✅ +17  60 💤 +1  0 ❌ ±0 

Results for commit ac2a196. ± Comparison against base commit 5319304.

♻️ This comment has been updated with latest results.

Copy link

sonarcloud bot commented Sep 20, 2024

@mshabarov mshabarov self-requested a review September 30, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants