You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affects: Spring Boot 3.2.0-RC2, Spring Web 3.2.0-RC2, Kotlin 1.9.20
Issue
Using a Controller, with return type kotlin.Unit, which uses directly HttpServletResponse to write the response, adds unexpected bytes to the response. The following is a controller example where a file is read and written to the output directly:
Affects: Spring Boot 3.2.0-RC2, Spring Web 3.2.0-RC2, Kotlin 1.9.20
Issue
Using a Controller, with return type
kotlin.Unit
, which uses directlyHttpServletResponse
to write the response, adds unexpected bytes to the response. The following is a controller example where a file is read and written to the output directly:The following shows the bytes expected vs current:
123 and 125 bytes are
{
and}
How to reproduce the issue
This is a Spring Boot project with a test that reproduces the issue.
Debugging
My guess would be: there is a new converter which is taking
kotlin.Unit
and tries to serialize it, outputting{
and}
.The text was updated successfully, but these errors were encountered: