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
This is related to #19986, although I think this issue is a bug rather than an enhancement.
YamlPropertiesFactoryBean handles an entry with an empty value differently to an entry with a value that is an empty array. An empty value becomes an empty string in the resulting Properties whereas the entry with an empty array value doesn't appear in the Properties at all.
Here are four tests that show this difference in behaviour (as well as the behaviour of YamlMapFactoryBean:
After more thoughts, I think we should have a fix in 5.0.x for this so I've backported it so that it can be consumed by the upcoming Spring Boot 2.0.2.RELEASE.
Andy Wilkinson opened SPR-16769 and commented
This is related to #19986, although I think this issue is a bug rather than an enhancement.
YamlPropertiesFactoryBean
handles an entry with an empty value differently to an entry with a value that is an empty array. An empty value becomes an empty string in the resultingProperties
whereas the entry with an empty array value doesn't appear in theProperties
at all.Here are four tests that show this difference in behaviour (as well as the behaviour of
YamlMapFactoryBean
:propertiesWithEmptyArrayValue
fails due to the entry being lost.Affects: 4.3.16, 5.0.5
Reference URL: spring-projects/spring-boot#12965
Issue Links:
Referenced from: commits 43f2334, e51330e
The text was updated successfully, but these errors were encountered: