Defect #1673
Passing full URI for file for svn doesn't work
| Status: | Closed | Start: | 2008-07-22 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | SCM | |||
| Target version: | - | |||
| Affected version: | Resolution: | Invalid |
||
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.
History
2008-07-22 20:54 - Jean-Philippe Lang
- Status changed from New to Closed
- Affected version 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.
2008-07-22 20:54 - Marc Broekhuis
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.
2008-07-22 20:57 - Marc Broekhuis
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.
2008-07-22 21:00 - Marc Broekhuis
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://'.
2008-07-22 21:44 - Jean-Philippe Lang
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
2008-07-22 23:20 - Marc Broekhuis
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.