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/8.0-rc2] Fix options Validation with objects have indexers #92311

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 19, 2023

Backport of #92309 to release/8.0-rc2

/cc @tarekgh

Customer Impact

Users who perform options validations using objects containing indexers may encounter exceptions. This issue represents a regression from earlier releases and is a direct result of the changes made to support the new validation attributes, namely ValidateObjectMembersAttribute and ValidateEnumeratedItemsAttribute.

Testing

Passed the regression tests and added more tests to cover the failing cases.

Risk

Low, this change is highly specific and pertains solely to cases where an object contains an indexer, with no impact on any other aspects of the logic.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

@ghost
Copy link

ghost commented Sep 19, 2023

Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #92309 to release/8.0-rc2

/cc @tarekgh

Customer Impact

Testing

Risk

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-Extensions-Options

Milestone: -

@tarekgh tarekgh added this to the 8.0.0 milestone Sep 19, 2023
@tarekgh tarekgh added the Servicing-consider Issue for next servicing release review label Sep 19, 2023
@tarekgh
Copy link
Member

tarekgh commented Sep 19, 2023

@artl93 @ericstj @jeffhandley I am submitting a request to port this fix to RC2. This issue represents a regression that occurred in RC1, and it would be beneficial to include the resolution in RC2.

@carlossanlop
Copy link
Member

carlossanlop commented Sep 20, 2023

@tarekgh backports to RC2 now need to go through Tactics approval, so please send them an email. Also please get a code review sign-off.

BTW there was a generalized failure in the RC2 branch for which we just merged a fix, so I updated this branch to ensure we got a clean CI result.

@tarekgh
Copy link
Member

tarekgh commented Sep 20, 2023

@ericstj @stephentoub this is a backport of the PR you reviewed #92309. Could you please approve it?

Copy link
Contributor

@artl93 artl93 left a comment

Choose a reason for hiding this comment

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

M2 approved.

@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 20, 2023
@carlossanlop
Copy link
Member

Approved by Tactics via email.

@carlossanlop carlossanlop merged commit dcdc5f5 into release/8.0-rc2 Sep 20, 2023
107 of 108 checks passed
@carlossanlop carlossanlop deleted the backport/pr-92309-to-release/8.0-rc2 branch September 20, 2023 06:11
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-Options Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants