[python-bugzilla] BugzillaError upon instantiating

Pierre-Yves Chibon pingou at pingoured.fr
Thu Oct 1 14:36:48 UTC 2015


Hi all,

I've seen a couple of reports on fedora-review and now one on pkgdb-cli about
python-bugzilla raising an exception at an unexpected location.

Here is the full report for pkgdb-cli:
https://bugzilla.redhat.com/show_bug.cgi?id=1267821

As you can see in the stacktrace:
>> BZCLIENT = Bugzilla(url=RH_BZ_API)

raises:

>> BugzillaError: Login failed: The username or password you entered is not
>> valid.

This is surprising to me for a few points:
a) It is not passing any username/password
b) If the username/password are invalid, I would expect to not be authenticated
but not that it raises an exception.

After trying to replicate the issue in a python shell, the exception seems to be
gone but another is thrown in:
File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 1203, in query
r = self._query(query)
...
Fault: <Fault 32000: 'The cookies or token provide were not valid or have
expired. You may login again to get new cookies or a new token.'>

Here as well, iirc it is possible to query a bug with python-bugzilla without
being logged in, so I would not expect this exception.

Could it be that the recent bugzilla upgrade confused things a little?

Thanks,
Pierre



More information about the python-bugzilla mailing list