[Mailman-Users] Fw: Bug in Mailman version 1.1 - problem with cookies? Round 2

Dan Mick dan.mick at West.Sun.COM
Tue Dec 21 18:59:38 CET 1999


blurr at txraves.org wrote:
> 
> i never got a response to this.  can someone help me out?

What would you like us to do?  Yes, it looks like a bug.  Have you tried
either examining the cookie or deleting it?... since the error message
pretty
clearly points to the file of code, and the code is pretty clearly
examining
the cookie data itself and finding something wrong....

You might add something like

if len(cookiedata) < len(key): return 0

before 

if cookiedata[keylen+1] <> '"' and cookiedata[-1]....

in SecurityManager.py.

I haven't tested the fix, because I don't know if that's what's going
wrong.

> thanks
> ---
> -] jordan
> -] blurr at txraves.org
> -] http://www.txraves.org/~blurr
> 
> - [ s p r e a d  t h a  v i b e ] -
> 
> ----- Original Message -----
> From: <blurr at txraves.org>
> To: "Mailman-users" <mailman-users at python.org>
> Sent: Thursday, December 16, 1999 10:35 AM
> Subject: Bug in Mailman version 1.1 - problem with cookies?
> 
> > just like to say i've been running mailman for a good while now and i've turned
> > into a total list whore! =P
> >
> > heres a recent problem i've run into that i'm thinking has to do with cookies.  it
> > breaks on my machine(internet exploder & nutscrape) but works fine on another
> > machine.
> >
> > Bug in Mailman version 1.1
> >
> > We're sorry, we hit a bug!
> >
> > If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a
> > description of what happened. Thanks!
> >
> > Traceback:
> > Traceback (innermost last):
> >   File "/home/mailman/scripts/driver", line 112, in run_main
> >     main()
> >   File "/home/mailman/Mailman/Cgi/admin.py", line 103, in main
> >     is_auth = lst.WebAuthenticate(password=adminpw,
> >   File "/home/mailman/Mailman/SecurityManager.py", line 83, in WebAuthenticate
> >     return self.CheckCookie(cookie_key)
> >   File "/home/mailman/Mailman/SecurityManager.py", line 117, in CheckCookie
> >     if cookiedata[keylen+1] <> '"' and cookiedata[-1] <> '"':
> > IndexError: string index out of range
> >
> > any ideas?
> >
> > thanks!
> > ---
> > -] jordan
> > -] blurr at txraves.org
> > -] http://www.txraves.org/~blurr
> >
> > - [ s p r e a d  t h a  v i b e ] -
> >
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users




More information about the Mailman-Users mailing list