Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

ConfigurationRoot.GetChildren() never finishes if a configuration key starts with colon #360

Closed
cesarblum opened this issue Dec 29, 2015 · 0 comments
Assignees
Milestone

Comments

@cesarblum
Copy link
Contributor

If a configuration key starts with :, ConfigurationRoot.GetChildrenImplementation() generates an infinite Linq query. This is because a key named e.g. :foo is read as <empty>:foo, which creates a ConfigurationSection with Path = "". ConfigurationSection in turn calls GetChildrenImplementation(Path) in order to traverse it's own children, but because it's Path property is set to "", the call is the same as the one made by ConfigurationRoot.GetChildren(), this causing an infinite loop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants