Skip to content

[release/8.0] Add do...while loop in the SetValue method of SerializationResourceManager.cs until resourceName is unique #13613

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

Open
wants to merge 2 commits into
base: release/8.0
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 18, 2025

Backport of #13578 to release/8.0

Fixes #12595

Proposed changes

Replaces single conditional append with a do…while loop to retry name generation to ensures that SetValue in SerializationResourceManager.cs repeatedly generates a new resourceName until it’s unique, fixing duplicate suffixes when serializing collections.

Customer Impact

  • When serializing collection values, the resource numeric suffix can be incremented without duplication

Regression?

Testing

  • Manual testing with the user-provided project

Risk

  • Low

LeafShi1 and others added 2 commits June 18, 2025 06:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions bot requested a review from a team as a code owner June 18, 2025 06:31
@LeafShi1 LeafShi1 self-assigned this Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant