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

AgentAccount HomePage is canonicalized automatically when calling "ToString()" #41

Open
FishHooks opened this issue Aug 22, 2018 · 0 comments
Labels

Comments

@FishHooks
Copy link

Because AgentAccount.HomePage is of type System.Uri, its ToString() returns a canonicalized version of the original string (for more details, see this link and scroll down to question 4). This leads to issues the value that is stored could be different from the value that was used when creating the object. For example, the value is automatically lowercased, as evidenced by this dotnetfiddle.

There's been a similar issue with Activity IDs (see #10 for more). This could be handled similarly, or by using Uri.OriginalString like I've shown in the earlier dotnetfiddle.

@FishHooks FishHooks added the bug label Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant