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
We think this is a bug, however, we've had lots of issues in the past with the conversion service causing unexpected problems when we change things. We're specifically worried that someone might get an unwanted conversion.
We're going to try and fix this in 3.3 and see if it causes any problems for folks that upgrade. If it doesn't we can consider backporting the fix later.
When ConfigurationPropertySourcesPropertyResolver resolves a property, it calls AbstractPropertyResolver.convertValueIfNecessary() which uses a ConversionService to produce the target type. This allows types such as
com.google.protobuf.ByteString
to invoke a custom method such astoStringUtf8
rather thantoString
to produce itsString
representation.When ConfigDataEnvironmentContributorPlaceholdersResolver resolves a property, it calls
String.valueOf()
- bypassing any registered converter.Original issue describing specific use case: GoogleCloudPlatform/spring-cloud-gcp#2690
Affects Spring Boot 2.4.x - 3.2.x.
The text was updated successfully, but these errors were encountered: