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
{{ message }}
Repository navigation
Deserializing a record instance, causing child elements to be duplicated when using configuration binder Get<T> method #109139
When deserializing a JSON configuration using the binder via configurationRoot.Get() method, some of the child elements are duplicated. However changing the type from record to class, it works as expected, however using "record" its reproducible. Loading the configuration via json file or json stream does not matter.
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-rc.2.24474.11\
This issue has apparently already been fixed, as i cannot reproduce it with the latest pre-release version 9.0.0-rc.2.24473.5 of the Microsoft.Extensions.Configuration.* packages (whereas i could reproduce the issue with the latest 8.0.x packages).
Activity
dotnet-policy-service commentedon Oct 23, 2024
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.
elgonzo commentedon Oct 23, 2024
This issue has apparently already been fixed, as i cannot reproduce it with the latest pre-release version 9.0.0-rc.2.24473.5 of the Microsoft.Extensions.Configuration.* packages (whereas i could reproduce the issue with the latest 8.0.x packages).
KalleOlaviNiemitalo commentedon Oct 23, 2024
Duplicate of #83803, which was fixed in #106158 between Microsoft.Extensions.Configuration.Binder 9.0.0-preview.7.24405.7 and 9.0.0-rc.1.24431.7.
dotnet-policy-service commentedon Oct 23, 2024
Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.
tarekgh commentedon Oct 23, 2024
I confirmed the fix. If you want to try it, download the latest net9.0 bits from https://github.com/dotnet/sdk/blob/main/documentation/package-table.md#table. install the version under the
9.0.1xxcolumn.