Bug 563689 - Issues when workspace is on a UNC path
Summary: Issues when workspace is on a UNC path
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.13   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-28 17:18 EDT by mikael stalhammar CLA
Modified: 2020-05-29 12:48 EDT (History)
1 user (show)

See Also:


Attachments
Problem description (82.93 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-05-28 17:18 EDT, mikael stalhammar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.