Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NPE in AuthenticationManager backchannelLogout #23306

@thomasdarimont

Description

@thomasdarimont

Before reporting an issue

Area

core

Describe the bug

In a customer project we observed UncaughtServerErrors which where caused by NPEs being thrown in AuthenticationManager#backchannelLogout. This is caused by accessing the user variable obtained from userSession.getUser() without a proper null check.

Version

22.0.1

Expected behavior

Should logout null for the username instead of throwing a NPE.

Actual behavior

BackchannelLogout sometimes yields an UncaughtServerError based on an NPE in AuthenticationManager#backchannelLogout.

How to Reproduce?

Hard to reproduce, as we need to create the sitation where the userSession is still present but the user object is gone.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions