[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Viewcvs

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-08-10 05:49:27 CEST

Russell Yanofsky wrote:
> 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:
> ...

Here's a cleaner workaround:

--- sapi.py.orig Fri Aug 8 19:29:24 2003
+++ sapi.py Sat Aug 9 20:40:36 2003
@@ -282,6 +282,11 @@

   def getenv(self, name, value = None):
     try:
+ if name == 'SCRIPT_NAME':
+ path_len = len(self.request.path_info)
+ if path_len:
+ assert self.request.uri[-path_len:] == self.request.path_info
+ return self.request.uri[:-path_len]
       return self.request.subprocess_env[name]
     except KeyError:
       return value

And the bug report did finally show up at:
http://article.gmane.org/gmane.comp.python.mod_python/590

- Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 10 05:50:19 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.