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
[.NET 6] UriBuilder breaking change not documented #61363
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
/cc @karelz |
@MihaZupan any thoughts? |
Tagging subscribers to this area: @dotnet/ncl Issue DetailsConsider the following code: Console.WriteLine(new UriBuilder("msg", "dummy", 0, "segment").Uri); On .NET 5 the output is
|
Introduced by #40986 which was a bug fix for #37865 (comment). You were relying on an undocumented bug affecting unknown Uri schemes. For example if you use The is not specific to |
It seems to fall into the "technical breaking change" category -- it was misbehaving against docs and we fixed it. |
Thanks for the analysis! I expected that the change was intentional but it was a bit tricky to find what what going on (the bug didn't manifest anywhere close to the |
Triage: Closing as per above explantion - #61363 (comment) |
Consider the following code:
On .NET 5 the output is
msg://dummy/segment
. On .NET 6 the output ismsg://dummy:0/segment
. It is possible to change the port number to-1
to get the same result. This is not listed in the documented breaking changes. If it was intentional it should be added in there.The text was updated successfully, but these errors were encountered: