Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1:/tmp/cvs-serv5441

Modified Files:
      Tag: Release_2_1-maint
        SecurityManager.py 
Log Message:
__checkone(): Patch 869644, ignore NotAMemberError that can get raised
from AuthContextInfo() when old cookie data is for someone no longer a
member of the mailing list.  Closes SF bug # 869647.  Bug and patch by
Stephan Berndts.


Index: SecurityManager.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/SecurityManager.py,v
retrieving revision 2.20.2.2
retrieving revision 2.20.2.3
diff -u -d -r2.20.2.2 -r2.20.2.3
--- SecurityManager.py  26 Dec 2003 16:36:53 -0000      2.20.2.2
+++ SecurityManager.py  3 Jan 2004 01:13:26 -0000       2.20.2.3
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2004 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -307,7 +307,10 @@
     def __checkone(self, c, authcontext, user):
         # Do the guts of the cookie check, for one authcontext/user
         # combination.
-        key, secret = self.AuthContextInfo(authcontext, user)
+        try:
+            key, secret = self.AuthContextInfo(authcontext, user)
+        except Errors.NotAMemberError:
+            return False
         if not c.has_key(key) or not isinstance(secret, StringType):
             return False
         # Undo the encoding we performed in MakeCookie() above.  BAW: I



_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to