mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, the `ProtobufMessageConverter` used in messaging would try and serialize the message payload by calling "toString()" on it in order to pass it to the Protobuf JSON encoder. While this works for `String` payloads, this fails for `byte[]` types. This commit ensures that such `byte[]` are first converted to `String` instances using the given charset first. Fixes gh-27408