ERROR: data.configure(): list index out of range
Lars Täuber
taeuber at bbaw.de
Fri Jun 5 11:09:42 CEST 2015
Fri, 5 Jun 2015 10:44:27 +0200
Christian Rößner <c at roessner-network-solutions.com> ==> Lars Täuber <taeuber at bbaw.de> :
>
> > Am 05.06.2015 um 09:50 schrieb Lars Täuber <taeuber at bbaw.de>:
> >
> > Hi Christian,
> >
> > here is a debug output:
> >
> > 2015-06-05 08:54:03,677 DEBUG: --------------- END environ ---------------
> > 2015-06-05 08:54:03,678 DEBUG: Request GET: QUERY_STRING: emailaddress=XXXXX%2540bbaw.de
> > 2015-06-05 08:54:03,678 DEBUG: Entering data.configure()
> > 2015-06-05 08:54:03,680 ERROR: Traceback (most recent call last):
> > File "/usr/share/pyshared/automx_wsgi.py", line 203, in application
> > data.configure(emailaddress, cn, password)
> > File "/usr/lib/python2.7/dist-packages/automx/config.py", line 136, in configure
> > domain = emailaddress.split("@")[1]
> > IndexError: list index out of range
> >
> > 2015-06-05 08:54:03,680 DEBUG: Response:
> >
> >
> > Does this help or is this fixed in a newer version than ours? It seems the "%2540" should have been a "@" in the email address.
>
> If I remember correctly, someone provided a pull request for fixing this and I commited it in the master branch. The one who fixed it had problems with current Thunderbird versions.
>
> 195 if not '@' in emailaddress:
> 196 emailaddress = urllib.unquote(emailaddress)
>
> This is the fix that was commited
Line 25 was missing:
+import urllib
Thanks
Lars
>
> Kind regards
>
> Christian
More information about the automx-users
mailing list