HandshakeWebSocketService assumes jakarta websocket is present #33970
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
HandshakeWebSocketService#initUpgradeStrategy
does not check for the availability of relevant classes before attempting to instanciateStandardWebSocketUpgradeStrategy
.This breaks when you attempt to load a context without a dependency on jakarta.websocket-client-api.
It looks like it should be handled gracefully by the following code in WebFluxConfigurationSupport:
but because a ClassNotFoundException is thrown instead of IllegalStateException; the context simply fails to load instead of falling back to NoUpgradeStrategyWebSocketService
The text was updated successfully, but these errors were encountered: