You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to point out that the javadoc for WebSessionManager states:
Return the {@link WebSession} for the given exchange. Always guaranteed
to return an instance either matching to the session id requested by the
client, or a new session either because the client did not specify one
or because the underlying session expired.
Your configuration does not honor the contract and therefore the issue is in your application. I'm happy to help you find a way to support your use case, but we prefer to use GitHub issues only for bugs and enhancements, so it would be best to ask a question on Stack Overflow and update this issue with a link to the question (so that other people can find it).
I'm going to close this issue for now with the above explanation.
Describe the bug
This line
session.getAttributes()
throws NPE, if we have WebSession bean configuration like this to disable WebSession:Expected behavior
I thing we may do null-safety when we are trying to call getAuthorizedClients in this place with nullable session.
Configuration
Spring Cloud Gateway.
The text was updated successfully, but these errors were encountered: