Eric D. Schabell: Eclipse Subversion access from behind a proxy

Wednesday, December 17, 2008

Eclipse Subversion access from behind a proxy

It is for the very first time that I post anything to solve a M$ platform problem, but this one is to allow the usage of a tool that is worth the shame.

The problem when connecting to any svn repository is that you are getting this message (example is from an open source project AbTLinux):

RA layer request failed
svn: PROPFIND request failed on '/svnroot/abtlinux'
svn: PROPFIND of '/svnroot/abtlinux': Could not resolve hostname `abtlinux.svn.sourceforge.net': The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. (https://abtlinux.svn.sourceforge.net)

The problem is that you need to pass through a proxy and in my case, this needs to happen with a user name and password authentication. This is done in the Subversion server configuration file. For both Linux, osX (Mac) the file is in the same location, for M$ it is in a bit different location. Both show you how to fix this for the user only. Should you wish to do this for the entire machine you will need to locate the central server configuration file:

#
# For Windows: %USERPROFILE%\Application Data\Subversion\servers
#

#
# For Linux or osX: ~/.subversion/servers
#

[global]
http-proxy-host = <proxy.server.name>
http-proxy-port = <some_port_number>
http-proxy-username = <your_user_name>
http-proxy-password = <your_password>


Once you set these for the user, ensure your SVN-plugin in Eclipse is using the Default location for the configuration settings and you should be able to connect to both http and https repositories.