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

Merged

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.

Sorry, something went wrong.

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

@jeffhandley jeffhandley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 25, 2024
@jeffhandley jeffhandley merged commit 3d448d1 into release/9.0-staging Nov 25, 2024
85 of 88 checks passed
@jeffhandley jeffhandley deleted the backport/pr-109786-to-release/9.0-staging branch November 25, 2024 17:28
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants