Bug 1658176 - Remove attachments from default field list for RPC
Summary: Remove attachments from default field list for RPC
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 5.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 5.0-RH2
Assignee: Jeff Fearn 🐞
QA Contact: Rony Gong 🔥
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-11 13:01 UTC by Sandro Bonazzola
Modified: 2025-10-16 23:52 UTC (History)
3 users (show)

Fixed In Version: 5.0.4.rh13
Clone Of:
Environment:
Last Closed: 2019-02-13 02:12:59 UTC
Embargoed:


Attachments (Terms of Use)

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.


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