-
Bug
-
Resolution: Done
-
Major
-
1.4.24.Final
-
None
-
None
-
- Use custom session from spring-session
- Issue a websocket upgrade request
We use custom session implementation from spring-session. When we want to upgrade request to websocket this exception occurs:
java.lang.ClassCastException: org.springframework.session.web.http.SessionRepositoryFilter$SessionRepositoryRequestWrapper$HttpSessionWrapper cannot be cast to io.undertow.servlet.spec.HttpSessionImpl
at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:131)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
...
The bug was introduced in https://issues.jboss.org/browse/UNDERTOW-1301
The same issue was mentioned on forum for the Apache Shiro session implementation (see forum reference)