Thanks for your help. I literally struggled with this for hours yesterday. But today, with
a fresh mind, I suddenly realized that I could try to login with my full email address,
not just my nick. And sure enough, it worked! So I'm sorry for false alarm, everything
is fine now. (It did work with just my nick in another script that uses it's own
library to communicate with RH BZ, so that's why I automatically assumed that it was
correct to use the nick and not the full email.)
Thanks,
Martin
--
Martin Malina
Software Engineer, PnT DevOps Automation
Red Hat Czech s.r.o.
On 10 Sep 2018, at 20:50, Dustin Mitchell <dustin(a)mozilla.com>
wrote:
Hi Martin!
Most Bugzilla implementations are heavily modified to suit local needs. The error
suggests that your query is trying to access an undefined field. Which is weird because
that query does not mention the field. But, you might have better luck communicating with
the administrators of that bugzilla instance. It doesn't look like this relates to
being logged in or not (but I could be wrong..).
Dustin
On Mon, Sep 10, 2018 at 11:41 AM, Martin Malina <mmalina(a)redhat.com
<mailto:mmalina@redhat.com>> wrote:
Hi,
I would like to start using python-bugzilla to search for bugzillas based on a search url
(
bugzilla.redhat.com <
http://bugzilla.redhat.com/> and
partner-bugzilla.redhat.com
<
http://partner-bugzilla.redhat.com/>).
It works for me for some sample query. Like this:
bzapi =
bugzilla.Bugzilla('bugzilla.redhat.com
<
http://bugzilla.redhat.com/>')
simpleq =
'https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&classification=Red%20Hat&product=Cloud%20Image%20Validation&query_format=advanced
<
https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASS...
query = bzapi.url_to_query(simpleq)
bugs = bzapi.query(query)
This works nicely. But my real query returns this when called without login:
xmlrpc.client.Fault: <Fault 108: "Can't use cf_internal_whiteboard as a field
name.">
So I tried to login:
bzapi.login(user=...,password=...)
Unfortunately that returns:
bugzilla.transport.BugzillaError: Login failed: The username or password you entered is
not valid.
I am pretty sure that the credentials are valid - I used them elsewhere. Does anybody
have any idea what could be wrong?
Thanks,
Martin
--
Martin Malina
Software Engineer, PnT DevOps Automation
Red Hat Czech s.r.o.
_______________________________________________
python-bugzilla mailing list -- python-bugzilla(a)lists.fedorahosted.org
<mailto:python-bugzilla@lists.fedorahosted.org>
To unsubscribe send an email to python-bugzilla-leave(a)lists.fedorahosted.org
<mailto:python-bugzilla-leave@lists.fedorahosted.org>
Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
<
https://getfedora.org/code-of-conduct.html>
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
<
https://fedoraproject.org/wiki/Mailing_list_guidelines>
List Archives:
https://lists.fedorahosted.org/archives/list/python-bugzilla@lists.fedora...
<
https://lists.fedorahosted.org/archives/list/python-bugzilla@lists.fedora...