Bug 1010842 - External bugs data is not typed correctly in RPC calls
Summary: External bugs data is not typed correctly in RPC calls
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.4
Assignee: Simon Green
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-23 07:47 UTC by rhev-integ
Modified: 2018-12-09 06:29 UTC (History)
5 users (show)

Fixed In Version: 4.4.1010
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-03 23:32:54 UTC
Embargoed:


Attachments (Terms of Use)

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


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