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

[release/9.0-staging] Fix regression in constructor parameter binding logic. #109813

Open
wants to merge 2 commits into
base: release/9.0-staging
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 14, 2024

Backport of #109786 to release/9.0-staging

/cc @eiriktsarpalis

Customer Impact

  • Customer reported
  • Found internally

This was reported by a customer in #109768, reporting incorrect behavior when trying to deserialize JSON where there are two properties that differ in casing (e.g. [JsonPropertyName("a")] and [JsonPropertyName("A")]).

Regression

  • Yes
  • No

A refactoring introduced in 455f540 regressed the way in which conflicting parameters are being resolved. This reinstates the original logic.

Testing

Added unit testing covering the regressed case.

Risk

Low. Targeted change reinstating logic that got accidentally removed in .NET 9.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

@eiriktsarpalis eiriktsarpalis added the Servicing-consider Issue for next servicing release review label Nov 14, 2024
@eiriktsarpalis eiriktsarpalis added this to the 9.0.x milestone Nov 14, 2024
@eiriktsarpalis eiriktsarpalis self-assigned this Nov 14, 2024
Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tagging @artl93 for awareness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Text.Json Servicing-consider Issue for next servicing release review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants