Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用yaml格式配置空数组,丢失配置key #297

Open
andyfu07005 opened this issue Oct 15, 2022 · 1 comment
Open

使用yaml格式配置空数组,丢失配置key #297

andyfu07005 opened this issue Oct 15, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@andyfu07005
Copy link

Issue Description

使用yaml格式配置空数组,丢失配置key

Describe what happened (or what feature you want)

配置key 丢失

Describe what you expected to happen

配置key 应该还存在

How to reproduce it (as minimally and precisely as possible)

  1. 在yaml文件中配置空数组,例如:xxxx: []
  2. 解析结果丢失key xxxx

Tell us your environment

reslease1.1.1

Anything else we need to know?

主要问题是DefaultYamlConfigParse.java 方法buildFlattenedMap 第162行空集合后就直接无处理
这个类应该是参考了spring 的spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java
spring有相关的 bug修复记录 spring-projects/spring-framework@e51330e

@hujun-w-2 hujun-w-2 self-assigned this Nov 12, 2022
@hujun-w-2 hujun-w-2 added the bug Something isn't working label Nov 12, 2022
@hujun-w-2
Copy link
Collaborator

i will fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants