Bug 1319611 - Flag processing fails on RPC Bug creation
Summary: Flag processing fails on RPC Bug creation
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 5.0
Hardware: Unspecified
OS: Unspecified
high
medium vote
Target Milestone: 5.0
Assignee: Matt Tyson 🤬
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-21 08:25 UTC by Rony Gong 🔥
Modified: 2018-12-09 06:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-16 06:06:52 UTC


Attachments (Terms of Use)

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.


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