Bug 1658176

Summary: Remove attachments from default field list for RPC
Product: [Community] Bugzilla Reporter: Sandro Bonazzola <sbonazzo>
Component: WebServiceAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Rony Gong 🔥 <qgong>
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0CC: azelinka, khong, qgong
Target Milestone: 5.0-RH2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.4.rh13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-13 02:12:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro Bonazzola 2018-12-11 13:01:44 UTC
in python:
 import bugzilla
 bz = bugzilla.RHBugzilla(url='https://bugzilla.redhat.com/xmlrpc.cgi')
 q = bz.build_query(target_milestone='ovirt-4.3.0')
 bz.query(q)

fails consistently with: 502 Server Error: Proxy Error for url: https://bugzilla.redhat.com/xmlrpc.cgi
after several minutes waiting for an answer.

Comment 1 Jeff Fearn 🐞 2018-12-16 23:36:39 UTC
This worked for me:

q = bz.build_query(target_milestone='ovirt-4.3.0', exclude_fields=["attachments"])


The attachments should be specifically asked for and needs to be removed from the default payload.

Comment 2 Sandro Bonazzola 2018-12-17 09:14:28 UTC
(In reply to Jeff Fearn from comment #1)
> This worked for me:
> 
> q = bz.build_query(target_milestone='ovirt-4.3.0',
> exclude_fields=["attachments"])

Thanks, this worked for me too.

Comment 3 Rony Gong 🔥 2019-01-09 08:23:53 UTC
Now, some fields such as: clone_ids, attachments, external_bugs... are not received in the default field list in RPC

Verified on commit f6835a7f9
Pass.

Comment 4 Jeff Fearn 🐞 2019-02-06 07:10:56 UTC
This change has been deployed to partner Bugzilla [1] for pre-release testing, if your testing reveals any issues please update this bug.

1: https://partner-bugzilla.redhat.com/

Comment 5 Jeff Fearn 🐞 2019-02-13 02:12:59 UTC
This change is now live. If there are any issues, do not reopen this bug.                                                                                                           
Instead, you should create a new bug and reference this bug.