Bug 1010842

Summary: External bugs data is not typed correctly in RPC calls
Product: [Community] Bugzilla Reporter: rhev-integ
Component: WebServiceAssignee: Simon Green <sgreen>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: dcaroest, ebaak, italkohe, jmcdonal, rjoost
Target Milestone: 4.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4.1010 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-03 23:32:54 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:
Embargoed:

Description rhev-integ 2013-09-23 07:47:21 UTC
Description of problem:
When getting bug information with Bug.get, the values for the external bugs ids are returned as integers instead of strings, thus loosing any padding 0's that they had in the database (for example salesforce external ids)

Version-Release number of selected component (if applicable):
4.4

How reproducible:
Do a Bug.get of any bug with an external bug that has an id with padding 0's (like bug 1006659)

Steps to Reproduce:
1.Execute Bug.get of bug 1006659
2.
3.

Actual results:
You get in the data:
     'ext_bz_bug_id': 945592,


Expected results:
You get in the data:
     'ext_bz_bug_id': '00945592',


Additional info:

Comment 1 Jason McDonald 2013-09-23 23:09:01 UTC
This should be a fairly simple change to the code. We should be careful to give advance warning of this change to anyone who has scripts that care about this field.

Comment 4 Simon Green 2013-11-03 23:32:54 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.

  -- simon