Closed ashleyjlive closed 1 month ago
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
This is a duplicate of https://github.com/dotnet/runtime/issues/80118 and https://github.com/dotnet/runtime/issues/76816.
See those issues for an explanation of why this is expected behavior.
Closing as (unfortunately) by design as per above info.
Description
After migrating our application tests from a Windows based build agent to a Linux based build agent we noticed that Uri.TryCreate has different behaviour. On Linux,
Uri.TryCreate("/foo", UriKind.Absolute, out var uri)
returnstrue
whereas on Windows it returnsfalse
. I believe the behaviour on Linux is incorrect.Reproduction Steps
Execute
Uri.TryCreate("/foo", UriKind.Absolute, out var uri)
on a Linux machine. Its output will betrue
whereas on Windows it isfalse
.Expected behavior
It should return
false
.Actual behavior
It returns
true
.Regression?
No response
Known Workarounds
No response
Configuration
Unix 6.5.0.1024
Other information
No response