Bug 164809 - [EFS] File system support in linked resources doesn't work
Summary: [EFS] File system support in linked resources doesn't work
Status: RESOLVED DUPLICATE of bug 137879
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-16 08:35 EST by Martin Probst CLA
Modified: 2007-07-29 09:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Probst CLA 2006-11-16 08:35:30 EST
This is related to bug #124529.

Creating a link to an element in an external file system doesn't work. 

Steps: 
* implement a non-"file:" file system
* run a workbench with the file system plugin installed
* create a new file, choose to link it to a file in the file system (via Advanced)
* enter a URL matching your own file system scheme (e.g. ftp://...)
* select your own file system from the dropdown
* click finish

Expected:
* the new file is an alias to a file in the selected file system
Happens:
* a defunct link is added

Investigation:
WizardNewFileCreationPage has a method called createLinkTarget(), which uses URIUtil.toURI(String) to create the link target path. That is wrong for non-file: scheme files as it transforms URIs to nonsense (e.g. ftp://foo/bar gets something like "/ftp:/foo/bar"). So this will only ever work with the file: file system.

URIUtil should probably only be used if the user entered a direct path to a file, as opposed to a URI.
Comment 1 John Arthorne CLA 2006-11-16 10:40:16 EST
Martin, I think this is a duplicate of bug 137879, fixed in this week's integration build.  Can you try the latest build and verify that it works for you?
Comment 2 Martin Probst CLA 2006-11-17 10:57:24 EST
I took me most of a day to download the Eclipse snapshot from that US server, but now I can confirm, it's fixed :-)

I'm resolving this as fixed as there is no "already fixed" state here.
Comment 3 John Arthorne CLA 2006-11-17 10:59:59 EST
Thanks Martin, I'm going to reopen this to mark as a duplicate. Each fixed bug requires manual verification, so marking as a duplicate avoids duplicating the verification. Keep the bugs coming if you encounter any other problems.
Comment 4 John Arthorne CLA 2006-11-17 11:00:10 EST

*** This bug has been marked as a duplicate of 137879 ***
Comment 5 Eclipse Webmaster CLA 2007-07-29 09:21:08 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991