Package: pyaimt
Version: 0.8.0.1-2
Severity: important
Tags: patch

AIM messages couldn't be sent (though receiving worked). We were seeing errors 
like:
[2010-05-26 16:18:46] Traceback (most recent call last):
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 
84, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 
69, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", 
line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", 
line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File 
"/usr/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line 210, 
in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 
460, in doRead
            return self.protocol.dataReceived(data)
          File 
"/usr/lib/python2.5/site-packages/twisted/words/xish/xmlstream.py", line 75, in 
dataReceived
            self.stream.parse(data)
          File "/usr/lib/python2.5/site-packages/twisted/words/xish/domish.py", 
line 759, in parse
            self.parser.Parse(buffer)
          File "/usr/lib/python2.5/site-packages/twisted/words/xish/domish.py", 
line 780, in _onStartElement
            e = Element(qname, self.defaultNsStack[-1], attrs, 
self.localPrefixes)
          File "/usr/lib/python2.5/site-packages/twisted/words/xish/domish.py", 
line 404, in __init__
            self.uri, self.name = qname
        exceptions.ValueError: too many values to unpack

I managed to 'fix' the problem, by changing line 762 of domish.py:
   qname = name.split(" ")
to:
   qname = name.replace('  ', ' ').split(" ")

Because we were seeing values of name like [note the double space]:
   http://www.xmpp.org/extensions/xep-0084.html#ns-data  data

which caused qname to contain more than 2 elements, later breaking the tuple 
unpacking.

At this point I should warn: While this change fixed pyaimt for us I have no 
understanding of the protocol and its entirely possible that my fix is totally 
inappropriate.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages pyaimt depends on:
ii  adduser                       3.112      add and remove users and groups
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-crypto                 2.1.0-2    cryptographic algorithms and proto
ii  python-openssl                0.10-1     Python wrapper around the OpenSSL 
ii  python-support                1.0.8      automated rebuilding support for P
ii  python-twisted                10.0.0-3   Event-based framework for internet
ii  python-twisted-web            10.0.0-1   An HTTP protocol implementation to
ii  python-twisted-words          10.0.0-2   Chat and Instant Messaging

Versions of packages pyaimt recommends:
ii  python-imaging               1.1.7-1+b1  Python Imaging Library
ii  python-mysqldb               1.2.2-10+b1 A Python interface to MySQL
ii  python-nevow                 0.10.0-1    Web application templating system 

Versions of packages pyaimt suggests:
ii  ejabberd                      2.1.3-1    distributed, fault-tolerant Jabber

-- Configuration Files:
/etc/pyaimt.conf.xml changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to