Bug 563689

Summary: Issues when workspace is on a UNC path
Product: [Eclipse Project] Platform Reporter: mikael stalhammar <mikael.stalhammar>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: rolf.theunissen
Version: 4.13   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Problem description none

Description mikael stalhammar CLA 2020-05-28 17:18:59 EDT
Created attachment 283069 [details]
Problem description

It seems like the isPrefixOf(...) in the org.eclipse.core.runtime.Path fails to identify paths as equal that only differ in case. See attached doc for more info how this caused issues and how it happened.
Comment 1 Rolf Theunissen CLA 2020-05-29 12:48:13 EDT
First, please don't use attachments (especially not in a propitiatory file format) to describe your problem.

From the description, Subclipse uses isPrefixOf for some kind of check. The IResource getlocation correctly returns a normalized string, such that filesystems that are case-insensitive are handled correctly. All code you quote in the document is designed to handle this case.

It is compared to a path that is normalized. Where does the non-normalized path originate from? The bug is at the side of the non-normalized path.