Skip to content

WebSocketTransportHandler passes Collections.<String, Object>emptyMap() to HandshakeHandler [SPR-12716] #17313

@spring-projects-issues

Description

@spring-projects-issues

Rob Winch opened SPR-12716 and commented

WebSocketTransportHandler passes in an empty Map into the delegate HandshakeHandler. This causes two problems:

  • The first is that no attributes that are were copied from any HandshakeInterceptor instances are available. For example, TransportHandlingSockJsService will invoke the HandshakeInterceptor and then delegate to a WebSocketTransportHandler. Since the attributes provided by the HandshakeInterceptor are not passed into the delegate HandshakeHandler
  • The second is that the delegate HandshakeHandler cannot populate any attributes to be provided in the WebSocket Session. For one Collections.<String, Object>emptyMap() is immutable. For two, the values are never copied to the WebSocket Session.

Affects: 4.1.4

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions