Validator is not set after initializing web socket MessageBroker from xml configuration [SPR-13996] #18569
Labels
in: messaging
Issues in messaging modules (jms, messaging)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Maksim Orlov opened SPR-13996 and commented
org.springframework.web.socket.config.MessageBrokerBeanDefinitionParser class doesn't contain any link to validator class, as result the Validator field in SimpAnnotationMethodMessageHandler and then in PayloadArgumentResolver is null and validation doesn't work at controller methods with
@MessageMapping
.I was able to make validation working by using java config of MessageBroker.
The AbstractMessageBrokerConfiguration class performs validator configuration at this case.
Affects: 4.2.5
Reference URL: #15811
Issue Links:
@Valid
in@MessageMapping
annotated methodsThe text was updated successfully, but these errors were encountered: