Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
CorsServerErrorHandler was added as the first error handler by #5632 CorsServerErrorHandler does not handle an exception but delegates it to the default one or user-defined handler and injects CORS headers.
CorsServerErrorHandler overrode onServiceException to delegate but omitted to override onProtocolViolation. As a result, a user-defined onProtocolViolation wasn't invoked.
Modifications:
Override onProtocolViolation() and delegate to serverErrorHandler
Result:
A protocol violation is now correctly handled by ServerErrorHandler.onProtocolViolation()
Motivation:
CorsServerErrorHandler
was added as the first error handler by #5632CorsServerErrorHandler
does not handle an exception but delegates it to the default one or user-defined handler and injects CORS headers.CorsServerErrorHandler
overrodeonServiceException
to delegate but omitted to overrideonProtocolViolation
. As a result, a user-definedonProtocolViolation
wasn't invoked.Modifications:
onProtocolViolation()
and delegate toserverErrorHandler
Result:
A protocol violation is now correctly handled by
ServerErrorHandler.onProtocolViolation()