Cannot read server-sent events without data (a.k.a. heartbeats) #27923
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
Affects: 5.3.11+
org.springframework.http.codec.ServerSentEventHttpMessageReader.buildEvent(List<String> lines, ResolvableType valueType, boolean shouldWrap, Map<String, Object> hints)
yields a StringIndexOutOfBoundsException if a line equals "data:", becauseline.charAt(5)
is called.This means that it fails at reading server-sent events that are heartbeats.
The text was updated successfully, but these errors were encountered: