Webmail (XMLRPC) exception with some emails encoding

Bug #311751 reported by Lorenzo Sfarra on 2008-12-27
2
Affects Status Importance Assigned to Milestone
Enchanted webmail
High
Lorenzo Sfarra

Bug Description

XMLRPC part for the get_mails() return values raises a ExpatError for some email encodings.

Traceback:
Environment:

Request Method: GET
Request URL: http://localhost:8000/viewmessage/22761/
Django Version: 1.1 pre-alpha SVN-9685
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'enchanted.webmail']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware')

Traceback:
File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in get_response
  86. response = callback(request, *callback_args, **callback_kwargs)
File "/var/lib/python-support/python2.5/django/contrib/auth/decorators.py" in __call__
  67. return self.view_func(request, *args, **kwargs)
File "/home/lorenzo/projects/enchanted/../enchanted/webmail/messagesviews.py" in view_message
  286. response = connection.get_mails(key, messageid, "(BODY[])")
File "/usr/lib/python2.5/xmlrpclib.py" in __call__
  1147. return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py" in __request
  1437. verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py" in request
  1201. return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.5/xmlrpclib.py" in _parse_response
  1335. p.feed(response)
File "/usr/lib/python2.5/xmlrpclib.py" in feed
  547. self._parser.Parse(data, 0)

Exception Type: ExpatError at /viewmessage/22761/
Exception Value: not well-formed (invalid token): line 8, column 4005

Changed in enchanted:
assignee: nobody → lorenzosfarra
importance: Undecided → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers