Community
Participate
Working Groups
In RSEFileSystem#getConnectionFor() the RSE EFS Provider does: con.getHostName() Note that this uses the IP address of the host. It has the advantage that if you have multiple connections to the same host you can take the one that is connected. But the disadvantage is, that multiple such connections can resolve to different file systems. EG an ftp connection to dev.eclipse.org returns some completely different file system than an SSH connection to the same host. Also, hosts which do not use TCP/IP can have the host address empty. I think it would be better to do con.getHostAlias() since this is known to exist and be unique. It is a more understandable, cleaner solution to explicitly reference a particular connection by name. This would also make the code below if (isConnected) unnecessary since there can only be one such connection with the given name. An alternative would be to do URIs like this: rse://129.81.18.123/path/to/file.txt?connection=FTP%20only rse://129.81.18.123/path/to/file.txt?subsystem=Sftp%20files putting the address into the URI's host field and the connection alias as an optional addition such that it can be disambiguated in case there are multiple connections to the same host. But this still wouldn't fix the issue of custom connections that do not have an IP address because they use very different kinds of transport.
I think I'd prefer the optional fragment for disambiguation. Deferring to 3.0 and/or 2.0.2
*** Bug 205455 has been marked as a duplicate of this bug. ***
*** Bug 219258 has been marked as a duplicate of this bug. ***
Bulk update of target milestone
Bulk update of target milestones to 3.2
Bulk moving 3.3 deferred items to 3.3.1