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: 24.5) #20448

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

…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.
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) November 12, 2024 11:06
Copy link

sonarcloud bot commented Nov 12, 2024

Copy link

github-actions bot commented Nov 12, 2024

Test Results

1 146 files  ± 0  1 146 suites  ±0   1h 32m 40s ⏱️ + 4m 20s
7 473 tests ± 0  7 423 ✅ ± 0  50 💤 ±0  0 ❌ ±0 
7 846 runs  +11  7 786 ✅ +11  60 💤 ±0  0 ❌ ±0 

Results for commit c22a4d6. ± Comparison against base commit 7fadbd2.

♻️ This comment has been updated with latest results.

@vaadin-bot vaadin-bot merged commit f8ac87d into 24.5 Nov 12, 2024
25 of 26 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-19983-to-24.5-1731409103458 branch November 12, 2024 11:27
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.

3 participants