ERROR: data.configure(): list index out of range

Christian Rößner c at roessner-network-solutions.com
Fri Jun 5 10:44:27 CEST 2015


> 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

Kind regards

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2449 bytes
Desc: not available
URL: <https://mail.sys4.de/pipermail/automx-users/attachments/20150605/a11b9147/attachment.bin>


More information about the automx-users mailing list