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 router bug accessing null history.state #1060

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

LukasKalbertodt
Copy link
Member

This lead to a critical error in situation where Tobira redirected internally after a login. We accidentally replaced the state by null, which was later accessed. Both of these change-snippets solve the bug, but both are useful. The redirect forward shouldn't just set the state to null, and the router should never assume the state is non-null.

This was found by @KatrinIhler when deploying for Bern.

This lead to a critical error in situation where Tobira redirected
internally after a login. We accidentally replaced the state by `null`,
which was later accessed. Both of these change-snippets solve the bug,
but both are useful. The redirect forward shouldn't just set the state
to null, and the router should never assume the state is non-null.
@LukasKalbertodt LukasKalbertodt added the changelog:user User facing changes label Jan 10, 2024
@github-actions github-actions bot temporarily deployed to test-deployment-pr1060 January 10, 2024 10:40 Destroyed
@LukasKalbertodt LukasKalbertodt changed the title Fix router bug accessing null history.state` Fix router bug accessing null history.state Jan 10, 2024
Copy link
Member

@owi92 owi92 left a comment

Choose a reason for hiding this comment

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

Thank you for the QA @KatrinIhler :)

@owi92 owi92 merged commit b89a3a0 into elan-ev:master Jan 10, 2024
2 checks passed
@LukasKalbertodt LukasKalbertodt deleted the fix-rauta-bug branch January 10, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants