Bug 1319611

Summary: Flag processing fails on RPC Bug creation
Product: [Community] Bugzilla Reporter: Rony Gong 🔥 <qgong>
Component: WebServiceAssignee: Matt Tyson 🤬 <mtyson>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 5.0CC: huiwang, jmcdonal, mtahir, mtyson, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-16 06:06:52 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:

Description Rony Gong 🔥 2016-03-21 08:25:52 UTC
Description of problem:
'Can\'t call method "flag_types" on unblessed reference happened when create bug by xmlrcp with flag_type set


Version-Release number of selected component (if applicable):
5.0.2.rh2

How reproducible:
100%


Steps to Reproduce:
1.Try to create bug with set flag_type by xmlrpc
xmlrpc.Bug.create({'product': 'Bugzilla', 'component': 'Administration', 'Bugzilla_login': 'redhat1', 'summary': 'xmlrpc test', 'version': '4.4', 'flags': [{'status': '?', 'name': 'requires_doc_text'}], 'Bugzilla_password': '****'})


Actual results:
It reutrn error:
'fault_code': -32000, 'fault_string': 'Can\'t call method "flag_types" on unblessed reference at /var/www/html/bugzilla/Bugzilla/WebService/Util.pm line 41.\n'}

Expected results:


Additional info

Comment 1 Matt Tyson 🤬 2016-04-19 03:43:44 UTC
This happened because some code from Bug 1188085 was not migrated across from the 4.4 to 5.0 tree.  This caused flag processing on bug creation to fail.

Comment 2 Hui Wang 2016-05-04 06:30:10 UTC
Verified this issue.
version 5.0.2.rh5.
The result is PASS.