Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 192631 - AliasManager not correctly comparing EFS filestore uri's
Summary: AliasManager not correctly comparing EFS filestore uri's
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.8 M7   Edit
Assignee: Szymon Ptaszkiewicz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 338792 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-14 06:53 EDT by Martin CLA
Modified: 2012-03-19 07:10 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin CLA 2007-06-14 06:53:43 EDT
Build ID: : I20070323-1616

Steps To Reproduce:
1. Create an Eclipse File System Plugin that uses an uri formed  
from a remote server and host e.g remote://www.myhost.com:8080/files/local/work

2. Create a project with a linked folder pointing at an invalid host 
e.g. 

remote://www.myhost.com:8080/files/local/work - invalid

attempts to populate the file tree will fail

3. Now create a linked folder pointing at a valid host 
e.g. 

remote://www.myhost.com:80/files/local/work - valid

the file tree will be populated.  However the file tree under the invalid linked folder will be populated with the files from the valid host also.

4. Attempting to edit a file on the remote host will fail as it will try to use the invalid host as it has the same alias  .


The problem seems to be in org.eclipse.core.internal.resources.AliasManager  The compare method (line 473) does not check the host or port of the two uris being compared.  Hence if the have the same path (on different hosts) they will have the same alias.  




More information:
Comment 1 Michael Valenta CLA 2011-04-20 11:13:51 EDT
This appears to be the same issue as bug 338792
Comment 2 Szymon Ptaszkiewicz CLA 2012-03-12 10:34:25 EDT
*** Bug 338792 has been marked as a duplicate of this bug. ***