Skip to content

Conversation

@taydy
Copy link

@taydy taydy commented Jan 20, 2024

Fix concurrency issues in SingleSignOutFilter#doFilter method.

In the SingleSignOutFilter#doFilter method, synchronization is added to prevent concurrent execution and ensure thread safety.
Before the repair, if SingleSignOutFilter#init is not executed for initialization, when multiple threads execute concurrently, one thread may be executing the HANDLER.init() method, the safeParameters in SingleSignOutHandler have not yet been initialized, and other threads have begun executing HANDLER.process(request, response), which will causes the program to throw a NullPointerException.

@taydy
Copy link
Author

taydy commented Jan 22, 2024

@mmoayyed Could you please take a look at this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant