Bug 906128 - regression: Product.get(include_fields=[..., "components"]) doesn't return any data
Summary: regression: Product.get(include_fields=[..., "components"]) doesn't return an...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Simon Green
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: BZ44
TreeView+ depends on / blocked
 
Reported: 2013-01-30 22:40 UTC by Cole Robinson
Modified: 2014-10-12 22:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-06 22:40:30 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 838846 0 None None None Never

Comment 2 Simon Green 2013-02-06 22:21:52 UTC
The URL has been modified in this post, since the original mentioned an internal server. This test was done with an internal 4.4 server.

$ cat xmlrpconeoff.py
#!/usr/bin/python

import pprint
import xmlrpclib

url = "https://_SECRET_/xmlrpc.cgi"
product = "Virtualization Tools"

bz = xmlrpclib.ServerProxy(url)
ret = bz.Product.get({"names": [product],
                      "include_fields": ["name", "components"]})
pprint.pprint(ret)

$ python xmlrpconeoff.py 
{'products': [{'components': [{},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {},
                              {}],
               'name': 'Virtualization Tools'}]}


Against [Bugzilla 4.2], same code returns results like

{'default_assigned_to': 'Daniel Berrange',
                               'default_qa_contact': '',
                               'description': 'graphical console viewer for virtual machines',
                               'id': 87950,
                               'is_active': True,
                               'name': 'virt-viewer',
                               'sort_key': 0}

Comment 3 Simon Green 2013-02-06 22:40:30 UTC
This change comes from upstream. I agree that it doesn't seem intuitive. I've filed a bug upstream for their comment. As it stands though, you'll need to change the include_fields value.

  -- simon

Comment 4 Simon Green 2013-02-07 06:21:54 UTC
Just an update. Not only do upstream think it is a problem, but they have marked it as a blocker for 4.4rc2. I'm working on fixing the bug upstream. As soon as it is committed to bazaar, we'll inherit the change.

  -- simon

Comment 5 Cole Robinson 2013-02-07 15:17:00 UTC
Okay, thanks simon.


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