package: python-btsutils clone 503716 -1 retitle 503716 HTML backend broken by changes on debbugs severity 503716 important retitle -1 Fails if the bug's forwarded field contains non-ASCII chars thanks
Em Seg, 2008-10-27 às 20:08 +0100, Andreas Tille escreveu: > Package: python-btsutils > Version: 0.3-1 > Severity: normal > > Hi, Hello, > I try to write a QA tools for Debian Pure Blends (formerly known > as Custom Debian Distributions) which lists all bugs of packages > which are in the list of dependencies of a metapackage.[1] > The query command works for nearly all packages - but I've got one > very strange exception. Please try the following script: > > #!/usr/bin/python > from btsutils.debbugs import debbugs > bts = debbugs() > bugs = bts.query('src:gettext') > > It results in: > > Traceback (most recent call last): > File "zw", line 4, in <module> > bugs = bts.query('src:gettext') > File "/var/lib/python-support/python2.5/btsutils/debbugs.py", line 59, in > query > return self.html.query(btsquery) > File "/var/lib/python-support/python2.5/btsutils/html.py", line 200, in > query > buglist = buglist.findAll("li") > AttributeError: 'NoneType' object has no attribute 'findAll' > > This happens only for the gettext package - every other package I tried > (which are at rough estimate 500) works perfectly. This sounds quite strange > and I'd happily provide more information if needed. It seems you've triggered two different bugs on btsutils: If the bug was marked as forwarded somewhere whose address contains non-ASCII characters (such as #63389), the call to python's unicode() on such string on the bug's object setForwarded() fails. It then fall back to the html backend as it causes an exception on the SOAP backend. Unfortunately it seems that the HTML backend is broken, most likely by changes in the structure of the pages on debbugs. A quick workaround on the first bug is to add another parameter, "iso-8859-1", on the unicode() call, but I'll have to investigate further to see if debbugs is really consistent on the encoding of non-ascii characters. -- Gustavo R. Montesino http://grmontesino.blogspot.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]