RequestContextSubscriber could put null value in Reactor Context #7228
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Summary
There are several issues with current implementation of ServletOAuth2AuthorizedClientExchangeFilterFunction.RequestContextSubscriber introduced by #6526
Actual Behavior
https://github.com/reactor/reactor-core/blob/master/reactor-core/src/main/java/reactor/util/context/Context.java#L36-L44
subscriber creates 4 keys (occupies almost all "optimmized" implementations of Context)
and as far as I understand
CONTEXT_DEFAULTED_ATTR_NAME
key is just a markerMaybe it would be better to put all this values into some holder so you can reduce number of keys from 4 to 1. And it allows remove extra
CONTEXT_DEFAULTED_ATTR_NAME
Expected Behavior
Version
5.1.6.RELEASE
5.2.0.M4
The text was updated successfully, but these errors were encountered: