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
The contract of the interface of session storages defines that SessiosStorage.lookup should only call the consumer if the session can be found and otherwise fail silently.
The InMemorySessionStorage throws an IllegalArgumentException is the session can not be found and thus crashes the pipeline.
The contract of the interface of session storages defines that SessiosStorage.lookup should only call the consumer if the session can be found and otherwise fail silently.
The InMemorySessionStorage throws an IllegalArgumentException is the session can not be found and thus crashes the pipeline.
https://github.com/Kotlin/ktor/blob/master/ktor-features/ktor-server-sessions/src/org/jetbrains/ktor/sessions/SessionStorage.kt#L46
Here is a minimal test that that shows how this behavior crashes the pipeline:
https://gist.github.com/audax/ac07afbe225d0d6a04f57a9fa492bffb
The text was updated successfully, but these errors were encountered: