Hosted SVN repo doesn't work with SSH on nondefaut port
Open, Needs TriagePublic

Description

There are some problems with diffusion hosted svn repo used with SSH server running on nondefault port (2222):

  1. Checkout command suggested by diffusion web doesn't work because svn command doesn't support port specification in repo URL:
$ svn checkout svn+ssh://vcs@p.local:2222/diffusion/25/ media-samples
svn: E170013: Unable to connect to a repository at URL 'svn+ssh://vcs@p.local:2222/diffusion/25'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
  1. Standard svn method to specify port - svn tunnel and ssh alias - doesn't work either:
$ svn checkout svn+tunnel://vcs@p.local/diffusion/25/ media-samples
phabricator-ssh-exec: Protocol for URI "svn+tunnel://vcs@p.local/diffusion/25" MUST be "svn+ssh".

$ svn checkout svn+ssh://vcs@p_svn/diffusion/25/ media-samples
phabricator-ssh-exec: Protocol for URI "svn+ssh://vcs@p_svn/diffusion/25" MUST be "svn+ssh".

It seems that protocol restriction can be relaxed to startsWith('svn+') without any security implications.


phabricator 27006fedccc2f487dcaf7177f6d127ccd0e6df7d (Sat, Sep 24)
arcanist e7906e47cba2006fa46553d462abf1f685845f20 (Sat, Sep 24)
phutil 518dacd785fb19d67643e4a113e99b8825a87f99 (Sat, Sep 24)
libphalias Unknown
svn, version 1.9.3 (r1718519)

alex3d created this task.Oct 21 2016, 7:56 PM
avivey added a subscriber: avivey.Oct 28 2016, 4:14 PM

Protocol for URI "svn+ssh://..." MUST be "svn+ssh".

what

epriestley moved this task from Backlog to Subversion on the Diffusion board.Feb 2 2017, 4:11 PM