Bug 1297637 - python-bugzilla: switch default to bug_autorefresh=False
python-bugzilla: switch default to bug_autorefresh=False
Product: Fedora
Classification: Fedora
Component: python-bugzilla (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Cole Robinson
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-01-11 23:46 EST by Matt Tyson
Modified: 2017-02-08 14:53 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-02-08 14:53:35 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matt Tyson 2016-01-11 23:46:14 EST
When bugzilla is accessed via XML-RPC, it will strip fields from the response if they contain a NULL value [1].

One example of this is the 'deadline' field.  If there is no data in the field, it will be absent from the response.

When python-bugzilla doesn't receive a field it expects, it seems to go and query the bug again.  This can cause a problem when doing a bug search as python-bugzilla will spend a great deal of time querying every bug again for a field that it will never receive.

[1] https://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/WebService/Server/XMLRPC.html#Undefined_Values
Comment 1 Cole Robinson 2016-01-12 13:15:23 EST
Thanks for the report, I didn't know that about NULL fields.

The pybz behavior has been around forever, and is convenient as a one off but is really prone to misuse as you point out. In pybz 1.1.0 I added a bug_autorefresh value to turn this off, but code needs to opt in:


I think for the next release I'll flip the default to 'off', but I'll need to make some noise about it first and add better docs. We can use this bug to track that change.
Comment 2 Jan Kurik 2016-02-24 09:16:02 EST
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
Comment 3 Cole Robinson 2016-05-25 19:40:48 EDT
This is changed in git now. And I sent an email announcing the semantic change, and some other API breaks:

Comment 4 Cole Robinson 2017-02-08 14:53:35 EST
python-bugzilla 2.0.0 is queued for f24+ now. Might let it bake in updates-testing for a while though

Note You need to log in before you can comment on or make changes to this bug.