-
Notifications
You must be signed in to change notification settings - Fork 82
Decide on handling path starting with / on *nix #104
Comments
@davidfowl we talked in theory about swapping these two checks: https://github.com/aspnet/FileSystem/blob/dev/src/Microsoft.AspNet.FileProviders.Physical/PhysicalFileProvider.cs#L85-L94 However, I don't think that's right either. The real problem is that on Windows it's easy to tell the difference between a volume-rooted path ( Honestly not quite sure how we could fix this even in theory... |
I think we have to drop this behavior completely. |
This somehow affects aspnet/Universe#304. I had to disable a unit test on *nix which ideally should be run on that platform. However the test gets incorrect results because of the way "/" is being treated. |
Let's reach a decision here. @davidfowl do you suggest we remove support for relative paths? Can we just enforce a |
No.
That's ugly. We can just not support paths that begin with /. Relative paths should just start with nothing. .e.g |
That sounds good to me. |
@pakrym this also prevents CoreCLR x-plat test runs. Please look into this after your current item. |
Doesn't the |
It's about what we allow in the methods. We want to fail for absolute paths. |
So do we fail on Windows for paths like C:\foo\bar as well? |
Yes I believe we already do |
Decided that current beheviour is okay, just changing supress message. |
Cool, please update the bug title to reflect the decision before checking in. |
It's a broken assumption since absolute paths on *nix can start with
/
The text was updated successfully, but these errors were encountered: