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
Micronaut server should not return 500 Internal Server Error in case of malformed session cookie in the request. It is incorrectly formatted request which should be categorized as 4xx.
Actual Behaviour
Response 500 Internal Server Error is sent because of the unhandled exception:
Unexpected error occurred: Illegal base64 character 5f
java.lang.IllegalArgumentException: Illegal base64 character 5f
at java.base/java.util.Base64$Decoder.decode0(Base64.java:847)
at java.base/java.util.Base64$Decoder.decode(Base64.java:566)
at java.base/java.util.Base64$Decoder.decode(Base64.java:589)
at io.micronaut.session.http.CookieHttpSessionIdGenerator.sessionIdFromCookie(CookieHttpSessionIdGenerator.java:77)
at io.micronaut.session.http.CookieHttpSessionStrategy.resolveIds(CookieHttpSessionStrategy.java:78)
at io.micronaut.session.http.HttpSessionFilter.doFilter(HttpSessionFilter.java:85)
at io.micronaut.http.filter.HttpServerFilter.doFilter(HttpServerFilter.java:48)
Expected Behavior
Micronaut server should not return 500 Internal Server Error in case of malformed session cookie in the request. It is incorrectly formatted request which should be categorized as 4xx.
Actual Behaviour
Response 500 Internal Server Error is sent because of the unhandled exception:
Steps To Reproduce
ApplicationTest
in the example applicationEnvironment Information
No response
Example Application
mancze/micronaut-sandbox@9980567
Version
4.5.0
The text was updated successfully, but these errors were encountered: