quarkus: An empty entry is added in undefined List config item
If you have a config item that is a List<String>
and you don’t define any value for it, you end up with a list containing one empty string element.
The expected behavior is that the list should be empty.
See https://github.com/quarkusio/quarkus/pull/2095#issuecomment-487241692 and I also had the issue in the Hibernate Search extension.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (20 by maintainers)
Commits related to this issue
- Config fix for empty string in lists fixes #2288 — committed to cristhiank/quarkus by cristhiank 5 years ago
Associating to this issue is fine
Presently there is no case in which an empty value is allowed for a property. It’s always treated as “not present”, for better or worse.