Skip to content

Conversation

jzheaux
Copy link
Contributor

@jzheaux jzheaux commented Sep 9, 2021

Closes gh-10226

@jzheaux jzheaux added this to the 5.6.0-M3 milestone Sep 9, 2021
Copy link
Member

@rwinch rwinch left a comment

Choose a reason for hiding this comment

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

The changes look good.

initialize();
}

private static void initialize() {
Copy link
Member

Choose a reason for hiding this comment

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

This should be called during context init so shouldn't be called concurrently, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is called whenever the strategy changes. For example, if setContextHolderStrategy were called concurrently, then initialize() would be called concurrently. This isn't the way the API is intended to be used, though.

@jzheaux jzheaux merged commit 3e87ef8 into spring-projects:main Sep 13, 2021
@jzheaux jzheaux deleted the gh-10226 branch September 13, 2021 21:57
@sjohnr sjohnr added status: duplicate A duplicate of another issue type: enhancement A general enhancement labels Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: duplicate A duplicate of another issue type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace SecurityContextHolder#addListener with SecurityContextHolder#setSecurityContextHolderStrategy

4 participants