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
expected: {"root.webservices[[domain.test:8080]][0].password"="mypassword", "root.webservices[[domain.test:8080]][0].username"="me"}
but was : {"root.webservices[domain.test:8080][0].password"="mypassword", "root.webservices[domain.test:8080][0].username"="me"}
org.opentest4j.AssertionFailedError:
expected: {"root.webservices[[domain.test:8080]][0].password"="mypassword", "root.webservices[[domain.test:8080]][0].username"="me"}
but was : {"root.webservices[domain.test:8080][0].password"="mypassword", "root.webservices[domain.test:8080][0].username"="me"}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.springframework.beans.factory.config.YamlPropertiesFactoryBeanTests.loadNestedEscapedProperties(YamlPropertiesFactoryBeanTests.java:270)
It seems there is a bug cause yaml's nested map is flatten incorrectly like
snicoll
changed the title
[Bug] YamlPropertiesFactoryBean incorrect flatten nested map to properties when map key contains escaped brackets
YamlPropertiesFactoryBean incorrect flatten nested map to properties when map key contains escaped brackets
Jun 4, 2021
Affects: since 4.1
Yaml file like bellow:
Yaml's map to json like
should equals properties file like:
or:
Both properties file is acceptable for Spring Boot Binding Maps
Reproduce Test Case is
Current it is failed like bellow
It seems there is a bug cause yaml's nested map is flatten incorrectly like
The text was updated successfully, but these errors were encountered: