Skip to content

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Oct 4, 2021

Fixes #910

@Artur- Artur- changed the title Take into account that a VaadinSession can be detached from the HTTP session fix: Take into account that a VaadinSession can be detached from the HTTP session Oct 5, 2021
private Optional<SecurityContext> getFromVaadinSession() {
VaadinSession session = VaadinSession.getCurrent();
if (session == null) {
if (session == null || session.getSession() == null) {

Choose a reason for hiding this comment

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

tests ?

This can be easily revert back by someone accidentally without a test and no-one notice this ever

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

@Artur- Artur- enabled auto-merge (squash) October 7, 2021 06:15
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 22.0.0.alpha7 and is also targeting the upcoming stable 22.0.0 version.

manolo pushed a commit to vaadin/flow that referenced this pull request Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE from VaadinAwareSecurityContextHolderStrategy when logging out

3 participants