On Fri, 21 Feb 2003 14:59:21 -0800, David Grimberg
<[EMAIL PROTECTED]> wrote:

> Ok we've figured this one out,

Was the first problem caused by not correctly setting config variable
CGI_USER?  Please let me know.  If so, I can catch that one and put up
a clear text message instead of a stack trace.

> but now that we've got TMDA-CGI allowing us
> to log in, and even manage the pending email, I've tried to use the embedded
> url confirmation, only to receive the error at the following url:
> 
> http://bardicgrove.org/cgi-bin/tmda-cgi?538.1045866508.29190.0a7279
> 
> Of course if by the time you read this and click on the link, you don't get
> a NameError message, then we've fixed it.

Sorry about that, David.  Looks like I had some bad variables in part
of the system-wide release code.  I guess I tested this program in
no-su and forgot to try it in system-wide.  Anyhow, the patch is quite
simple.  Grab the latest Release.py from CVS or apply the following to
it:

RCS file: /cvsroot/tmda/tmda/contrib/cgi/Release.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Release.py  1 Feb 2003 17:09:57 -0000       1.7
+++ Release.py  22 Feb 2003 15:15:59 -0000      1.8
@@ -49,7 +49,8 @@
 
   try:
     UID, Timestamp, PID, HMAC = QueryString.split(".")
-    UserRec = pwd.getpwuid(int(UID))
+    UID = int(UID)
+    UserRec = pwd.getpwuid(UID)
     User = UserRec[0]
     GID = UserRec[3]
   except ValueError:
@@ -78,8 +79,8 @@
   try:
     os.seteuid(0)
     os.setegid(0)
-    os.setegid(self.Vars["GID"])
-    os.seteuid(self.Vars["UID"])
+    os.setegid(GID)
+    os.seteuid(UID)
   except OSError:
     pass

Gre7g.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to