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

Fix copying of Attendees Uri-typed properties #643

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

minichma
Copy link
Collaborator

Prior to this PR, when cloning an Attendee object, Uri-typed properties (i.e. Value, SentBy, DirectoryEntry) were copied like newValue = new Uri(oldValue.ToString()), which caused the Uri's OriginalString value to get lost. This PR fixes the behavior by simply copying the reference, which is safe as Uri is immutable. The PR also fixes the test AttendeesSerialized, which tested for the incorrect behavior.

…ndee`, which is to keep the casing of the `Uri` typed properties, even if not in line with the RFC.
Copy link

sonarcloud bot commented Nov 17, 2024

Copy link

codecov bot commented Nov 17, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@minichma minichma marked this pull request as ready for review November 17, 2024 21:00
@minichma minichma requested a review from axunonb November 17, 2024 21:00
@minichma minichma merged commit e76da82 into main Nov 17, 2024
6 of 7 checks passed
@minichma minichma deleted the bugfix/attendee_uri_copy branch November 17, 2024 23:19
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.

2 participants