spring-cloud-consul icon indicating copy to clipboard operation
spring-cloud-consul copied to clipboard

Large files can throw YAMLException due to node limits

Open mkluzacek opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Same problem as mentioned in https://github.com/spring-projects/spring-boot/issues/23096. When loading large yaml config from consul it ends up wtih org.yaml.snakeyaml.error.YAMLException: Number of aliases for non-scalar nodes exceeds the specified max=50.

This was fixed for org.springframework.boot.env.OriginTrackedYamlLoader but is still problem in org.springframework.beans.factory.config.YamlPropertiesFactoryBean that is used by org.springframework.cloud.consul.config.ConsulPropertySource

Describe the solution you'd like Provide a way to override the settings in org.yaml.snakeyaml.LoaderOptions or use custom org.springframework.beans.factory.config.YamlProcessor in org.springframework.cloud.consul.config.ConsulPropertySource.

mkluzacek avatar Nov 11 '24 16:11 mkluzacek

Also interested in a fix for this

bpeterson3134 avatar Feb 12 '25 18:02 bpeterson3134