SVN-Web - URI encoding of forward slash to percent 2F messes up repository browsing

Posted on Tue Mar 13 02:42:24 2007 by alnd
URI encoding of forward slash to percent 2F messes up repository browsing

I've got SVN::Web 0.52 running on Apache 2.2.4/Subversion 1.4.3/Apache2::RequestRec (mod_perl) 2.000003 on a RHEL 4.3 box. Without svnweb, the svn services are fine (but are boring to view). Configuring svnweb has been a challenge. If I try to look at the contents of project 'abc' with a web browser I get this error (url for this at my site is https://svn/svnweb/abc):

Repository List / abc @ r An error occured (SVN::Client->new() failed: file:///home/websvn/repositories/abc Bad URL passed to RA layer: Unrecognized URL scheme for file:///home/websvn/repositories/abc at /us +r/lib/perl5/site_perl/5.8.5/SVN/Web.pm line 145 )

However when I force a reload on the page, it comes up fine.

Next problem: Links deeper down are messed up. If I follow abc's trunk and try to examine some source code there, the links generated by svnweb look like this:

https://svn/svnweb/rexdb/browse%2Ftrunk/src
The %2F should be a forward slash, in otherwords, the generated url should be
https://svn/svnweb/rexdb/browse/trunk/src

If I manually replace the %2F with / and reload, it shows the desired page just fine. Manually doing that change gets old fast though!

Anyone have clues to resolving these problems?

Direct Responses: 4557 | 5017 | Write a response