#1691 Bodhi refuses to attach a bug number to the update
Closed: Fixed None Opened 14 years ago by tadej.

= phenomenon =
I submitted an update for the package I maintain:
https://admin.fedoraproject.org/updates/edit/PyQwt-5.2.0-1.fc11
I tried to attach the bug report https://bugzilla.redhat.com/show_bug.cgi?id=520095
via Bugs field of the update system.
Bodhi returns the following error message:
Update successfully edited. Unable to access one or more bugs. Exception: not well-formed (invalid token): line 13, column 60

= reason =
I don't know.


This looks to be an issue with python-bugzilla
{{{
In [1]: bz = Bugzilla.get_bz()
bug =
In [2]: bug = bz.getbug(520095)


ExpatError Traceback (most recent call last)

/usr/lib/python2.4/site-packages/bugzilla/base.pyc in getbug(self, id)
478 already loaded.'''
479 log.debug("getbug(%s)" % str(id))
--> 480 return _Bug(bugzilla=self,dict=self._getbug(id))
481 def getbugsimple(self,id):
482 '''Return a Bug object given bug id, populated with simple info'''

/usr/lib/python2.4/site-packages/bugzilla/bugzilla3.pyc in _getbug(self, id)
67 def _getbug(self,id):
68 '''Return a dict of full bug info for the given bug id'''
---> 69 return self._getbugs([id])[0]
70 # Bugzilla3 doesn't have getbugsimple - alias to the full method(s)
71 _getbugsimple = _getbug

/usr/lib/python2.4/site-packages/bugzilla/rhbugzilla.pyc in _getbugs(self, idlist)
386 if self.multicall:
387 if len(idlist) == 1:
--> 388 return [self._proxy.bugzilla.getBug(idlist[0])]
389 mc = self._multicall()
390 for id in idlist:

/usr/lib/python2.4/xmlrpclib.pyc in call(self, args)
1094 return _Method(self.send, "%s.%s" % (self.__name, name))
1095 def __call
(self,
args):
-> 1096 return self.__send(self.__name, args)
1097
1098 ##

/usr/lib/python2.4/xmlrpclib.pyc in __request(self, methodname, params)
1381 self.__handler,
1382 request,
-> 1383 verbose=self.__verbose
1384 )
1385

/usr/lib/python2.4/site-packages/bugzilla/base.pyc in request(self, host, handler, request_body, verbose)
955 sock = None
956
--> 957 return self._parse_response(h.getfile(), sock)
958
959 class SafeCookieTransport(xmlrpclib.SafeTransport,CookieTransport):

/usr/lib/python2.4/xmlrpclib.pyc in _parse_response(self, file, sock)
1279 if self.verbose:
1280 print "body:", repr(response)
-> 1281 p.feed(response)
1282
1283 file.close()

/usr/lib/python2.4/xmlrpclib.pyc in feed(self, data)
525
526 def feed(self, data):
--> 527 self._parser.Parse(data, 0)
528
529 def close(self):

ExpatError: not well-formed (invalid token): line 13, column 60

}}}

CCing python-bugzilla author. Will, any suggestions for workarounds?

This issue should have been resolved with the latest Bugzilla upgrade. Please reopen if this is not the case.

Login to comment on this ticket.

Metadata