I'm a java developer.I use this webservice(https://bugzilla.redhat.com/docs/en/html/api/Bugzilla/WebService/Bug.html#get) to get bug. Map<String, Object> params = new HashMap<String, Object>(); params.put("ids", new Object[] { bugId } ); List<String> feilds = new ArrayList<String>(); feilds.add("id"); feilds.add("component"); feilds.add("keywords"); feilds.add("flags"); feilds.add("status"); feilds.add("product"); params.put("include_fields", feilds); String result = client .excute(client.genGetMethod("Bug.get", params)); when use this webservice search bug,can't get component information.
Bugzilla QE could get the bug's component information by python xmlrpc as: >>>proxy.Bug.get({'login':'XXXX','password':'XXXX','ids':'1'}) {'faults': [], 'bugs': [{'whiteboard': '', 'cf_story_points': '---', 'cf_pm_score': '3200', 'estimated_time': 20.0, 'depends_on': [1045270], 'cf_regression_status': '---', 'cf_conditional_nak': [], 'creation_time': <DateTime '19981102T02:56:00' at 18b01b8>, 'actual_time': 9.0, 'docs_contact': '', 'severity': 'low', 'is_open': False, 'cf_mount_type': '---', 'keywords': ['Reopened', 'TestCaseApproved'], 'summary': 'test bug', 'id': 1, 'cf_release_notes': '', 'cf_show_homepage': '---', 'classification': 'Community', 'is_confirmed': True, 'is_creator_accessible': True, 'cf_fixed_in': 'ohad', 'creator': 'aander07', 'target_milestone': '---', 'priority': 'high', 'platform': 'All', 'version': ['devel'], 'cf_qa_whiteboard': 'Build Foo Bar RHTSdone=/should/keep/this', 'cf_verified': ['NoHardware'], 'cf_cust_facing': 'No', 'cf_environment': '', 'status': 'CLOSED', 'product': 'Bugzilla', 'cf_verified_branch': '', 'blocks': [2], 'qa_contact': 'tools-bugs', 'see_also': [], 'component': ['Bugzilla General'], 'remaining_time': 0.0, 'target_release': ['---'], 'cf_pgm_internal': '', 'cf_doc_type': 'Bug Fix', 'groups': ['private'], 'cf_srtnotes': '', 'cf_documentation_action': '---', 'cf_internal_whiteboard': 'jh', 'cf_clone_of': 0, 'cf_devel_whiteboard': 'test-test-test', 'is_cc_accessible': True, 'cf_type': '---', 'cf_category': '---', 'url': '', 'cf_build_id': 'ohad', 'cf_qe_conditional_nak': ['Patch'], 'cf_crm': '', 'cf_last_closed': <DateTime '20140205T00:12:30' at 18a9c20>, 'alias': [], 'op_sys': 'Linux', 'cf_layered_products': [], 'assigned_to': 'jpazdziora', 'update_token': '1413789954-9ZrbZXKwoNIujQfrZzbsdaMJWuFRi_gpIU0uFZwXPSY', 'cf_partner': ['Adaptec'], 'resolution': 'WONTFIX', 'last_change_time': <DateTime '20141015T07:05:01' at 18b0050>, 'cc': ['aleksey', 'cward', 'eguan', 'hexstar', 'jdenemar', 'jgregusk', 'jmcdonal', 'jpazdziora', 'julien.tamisier', 'kbaker', 'kzhang', 'lilu', 'ljr109', 'lmiksik', 'mcufan1', 'ovasik', 'peter.chiu', 'pkwrangler-xmlrpc', 'pm-rhel', 'pravintrimbake', 'rsteiger', 'sbueno', 'thiagofernandes', 'yil']}]}
which url you use? I use this qe bugzilla url for test:https://bz-web.app.qa.eng.nay.redhat.com/xmlrpc.cgi
The code fragment doesn't provide enough information for me to attempt to reproduce this bug. In particular, without any information about the "client" object, I have no idea what it's methods actually do, or even what class it is. Ideally, you should provide a small runnable example program that demonstrates the bug -- e.g. by querying one bug and printing out the query and the returned data. I will attach an example program written in perl, where the component field is fetched from Bugzilla correctly.
Created attachment 948462 [details] Fetch components from Bugzilla
It's not a bug.this qe server can't get component,but product server can get.