RE: ViewcvsOxley, David wrote:
> Yes, I read the install file. It said to copy the files
> under mod_python to a directory hosted by Apache.
>
> I've just run "cvs up -D 06/14/2003" on viewcvs and got it
> working with the main links, but the links at the top ([svn]
> /Project/trunk) are giving the original error. HEAD of
> viewcvs is completely hosed and unusable unless you type in
> the urls manually. i.e. None of the links work..
>
> Dave
This appears to be caused by bug in mod_python. I posted a bug report to the
mod_python mailing list about this (for some reason it hasn't shown up yet).
Anyway, here's a temporary workaround for viewcvs:
--- sapi.py.orig Fri Aug 8 19:29:24 2003
+++ sapi.py Sat Aug 9 08:06:31 2003
@@ -282,6 +282,18 @@
def getenv(self, name, value = None):
try:
+ if name == 'SCRIPT_NAME':
+ path_info = self.request.subprocess_env.get('PATH_INFO', None)
+ if path_info and path_info[-1] == '/':
+ script_name = self.request.subprocess_env['SCRIPT_NAME']
+ path_len = len(path_info) - 1
+ if path_len:
+ assert script_name[-path_len:] == path_info[:-1]
+ return script_name[:-path_len]
+ else:
+ assert script_name[-1] == '/'
+ return script_name[:-1]
+
return self.request.subprocess_env[name]
except KeyError:
return value
- Russ
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 9 17:38:00 2003