Defect #1673
closedPassing full URI for file for svn doesn't work
0%
Description
The full URI including 'file://' gets passed to the command 'svn list --xml' with a local svn repository and subversion 1.5.0 doesn't like the 'file://' part. It will only work with an absolute path without 'file://', so just like 'svn list --xml /path/to/repo'. I've worked around this by commenting out 'validates_presence_of' and 'validates_format_of' in the file 'app/models/repository/subversion.rb' and by entering the absolute path without the 'file://' part in the scm configuration, but I guess this should be fixed by stripping the 'file://' part off the URI later on when passing it to the 'svn list --xml' command in lib/redmine/scm/adapters/subversion_adapter.rb.
Updated by Jean-Philippe Lang over 17 years ago
- Status changed from New to Closed
- Affected version (unused) deleted (
devel) - Resolution set to Invalid
It works fine with svn 1.5 but the syntax is file:/// (3 slashes), not file://
Could you try and give feedback please.
Updated by Marc Broekhuis over 17 years ago
I'm sorry about the subject, it should be; passing full URI for a local svn repository doesn't work, but I can't change the subject.
Updated by Marc Broekhuis over 17 years ago
I've passed it with three slashes in total like: file:///path/to/repo and that doesn't work. When I enter the command svn list --xml file:///path/to/repo manually on the commandline it doesn't work either, but when i leave out the file:/// part on the commandline it works.
Updated by Marc Broekhuis over 17 years ago
Marc Broekhuis wrote:
I've passed it with three slashes in total like: file:///path/to/repo and that doesn't work. When I enter the command svn list --xml file:///path/to/repo manually on the commandline it doesn't work either, but when i leave out the file:/// part on the commandline it works.
I meant when I leave out 'file://'.
Updated by Jean-Philippe Lang over 17 years ago
svn --version svn, version 1.5.0 (r31699) compiled Jun 23 2008, 12:59:48
svn list file:///var/svn/redmine branches/ plugins/ tags/ trunk/
You may want to have a look at: http://subversion.tigris.org/faq.html#unrecognized-url-error
Updated by Marc Broekhuis over 17 years ago
I've had actually already just read that faq, but I've had the ra_local module already installed and recognised by svn and I get a different error;
svn: Unable to open an ra_local session to URL svn: Unable to open repository
While without 'file://' it works fine.
And we use the same version;
svn --version svn, version 1.5.0 (r31699) compiled Jul 14 2008, 22:03:08 ... The following repository access (RA) modules are available: * ra_neon : Module for accessing a repository via WebDAV protocol using Neon. - handles 'http' scheme - handles 'https' scheme * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme
But I now know that it is a distro specific problem since we use the same version. I'll start with building subversion from source here.
Thanks for replying.