You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today we seems to have hardcoded logic to know when paths should be compared case-sensitive or not, e.g. callers of isEqualOrParent or isEqual and likely many more...
With b0ede6c I have added a file system provider flag/capability to signal that it is case-sensitive (default is case-insensitive). We need to come up with a strategy to communicate that information to consumers, e.g. the explorer or file events so that we do the correct thing.
I guess we would need some service that can compare resources which has all the knowledge of the capabilities of the file system. Possible inputs to this service are the capabilities of the remote file system, and then for file://, the OS and possibly smarter things like having a real understanding of the file system. As a first step we could have a stupid logic in the service for file:// where we simply assume Linux is case-sensitive and the others are not.
Introducing such a service makes sense but could it also be a part of the FileService?
I could look into adding this once we decide where this should belong. And I like the idea of starting with stupid logic which respects what we currently have.
We can start adding it there. The challenge will be to get access to this service from all places where we need to compare URIs. Also, I guess comparing 2 resources with different schemes should not be supported at all.
Also, I guess comparing 2 resources with different schemes should not be supported at all.
Well, not supported as they are inequal by definition. So, compare scheme, then authority (both always case-insensitive according to my knowledge), and then compare path (case-sensitive or not) and optionally compare query and ignore fragment.
I have pushed the changes in the Explorer such that the Explorer will now respect the FileSystemProvider case sensitive capability. Explorer also reacts on the change of this capability.
I know that this does not solve all the issues, but should in theory help with many issues as Martin Aeschlimann (@aeschli) suggested.
So let's try it out with insiders from tomomrrow and for now closing this issue.
Activity
make ResourceMap always strict, #48258
bpasero commentedon Apr 20, 2018
I guess we would need some service that can compare resources which has all the knowledge of the capabilities of the file system. Possible inputs to this service are the capabilities of the remote file system, and then for
file://, the OS and possibly smarter things like having a real understanding of the file system. As a first step we could have a stupid logic in the service forfile://where we simply assume Linux is case-sensitive and the others are not.isidorn commentedon Apr 20, 2018
Introducing such a service makes sense but could it also be a part of the
FileService?I could look into adding this once we decide where this should belong. And I like the idea of starting with stupid logic which respects what we currently have.
jrieken commentedon Apr 20, 2018
👍 for adding this to the FileService, it is somewhat similar to
canHandleResourcebpasero commentedon Apr 20, 2018
We can start adding it there. The challenge will be to get access to this service from all places where we need to compare
URIs. Also, I guess comparing 2 resources with different schemes should not be supported at all.isidorn commentedon Apr 20, 2018
Assigning to May so we investigate next milestone.
jrieken commentedon Apr 20, 2018
Well, not supported as they are inequal by definition. So, compare
scheme, thenauthority(both always case-insensitive according to my knowledge), and then compare path (case-sensitive or not) and optionally compare query and ignore fragment.isidorn commentedon May 18, 2018
We were focused on grid this milestone, next week I am on vacation, this is not for endgame -> June
6 remaining items
isidorn commentedon Aug 24, 2018
Does not seem like this will happen in the last couple days of the milestone (risky) -> september
isidorn commentedon Dec 17, 2019
I have pushed the changes in the Explorer such that the Explorer will now respect the FileSystemProvider case sensitive capability. Explorer also reacts on the change of this capability.
I know that this does not solve all the issues, but should in theory help with many issues as Martin Aeschlimann (@aeschli) suggested.
So let's try it out with insiders from tomomrrow and for now closing this issue.
explorer: read all capabilites like a proper gentlemen