Skip to content

[fix] Blank page on invalid session token#4622

Merged
bruntib merged 1 commit into
Ericsson:masterfrom
bruntib:invalid_auth_token
Jul 9, 2025
Merged

[fix] Blank page on invalid session token#4622
bruntib merged 1 commit into
Ericsson:masterfrom
bruntib:invalid_auth_token

Conversation

@bruntib
Copy link
Copy Markdown
Contributor

@bruntib bruntib commented Jul 8, 2025

When the browser has an auth session token that is not found on server side, then a blank page was loaded. As a workaround the user had to manually clear the token from the browser and reload the page. Now we redirect the user back to the login page when this situation occurs.

The problem was that the "authParams" was cached in a state that its "sessionStillActive" field is false. Now these auth parameters are not cached but loaded from the server.

When the browser has an auth session token that is not found on server
side, then a blank page was loaded. As a workaround the user had to
manually clear the token from the browser and reload the page. Now we
redirect the user back to the login page when this situation occurs.

The problem was that the "authParams" was cached in a state that its
"sessionStillActive" field is false. Now these auth parameters are not
cached but loaded from the server.
@bruntib bruntib added this to the release 6.27.0 milestone Jul 8, 2025
@bruntib bruntib requested a review from vodorok as a code owner July 8, 2025 15:18
@bruntib bruntib added GUI 🎨 bugfix 🔨 web 🌍 Related to the web app labels Jul 8, 2025
Copy link
Copy Markdown
Contributor

@Discookie Discookie left a comment

Choose a reason for hiding this comment

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

Some way to test this case would be nice, but otherwise LGTM.

@bruntib
Copy link
Copy Markdown
Contributor Author

bruntib commented Jul 9, 2025

@Discookie GUI tests are not stable, unfortunately, but I agree. We should test this in the future. Thank you!

@bruntib bruntib merged commit 99a4952 into Ericsson:master Jul 9, 2025
8 of 9 checks passed
@bruntib bruntib deleted the invalid_auth_token branch July 9, 2025 09:45
@bruntib bruntib modified the milestones: release 6.27.0, release 6.26.1 Jul 9, 2025
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