Community
Participate
Working Groups
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:
This appears to be the same issue as bug 338792
*** Bug 338792 has been marked as a duplicate of this bug. ***
Fixed in master. http://git.eclipse.org/c/platform/eclipse.platform.resources.git/commit/?id=64d63102265fe1e9ccb548c2878af1a822653cfc http://git.eclipse.org/c/platform/eclipse.platform.resources.git/commit/?id=9f6eb856189031563b916d019ad35ecbe0e7a5f0