Closed
Bug 1026415
Opened 11 years ago
Closed 11 years ago
Some empty fields are present as "" rather than being absent
Categories
(bugzilla.mozilla.org :: Extensions, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gerv, Assigned: dkl)
Details
I don't know if the aim with the REST compatibility layer was to get absolute perfection or not. I guess it's OK to have new fields which are not present at all on BzAPI, like is_open, because that shouldn't break anything. But it's probably an issue if you change the behaviour of fields which BzAPI does return.
If a user doesn't have a real_name, BzAPI omits the field, but Compat returns it as "":
Compare:
https://bugzilla.mozilla.org/bzapi/bug/35
https://api-dev.bugzilla.mozilla.org/latest/bug/35?content-type=application/json
for the "creator" entry.
Gerv
| Reporter | ||
Comment 1•11 years ago
|
||
And sometimes the other way around. The "URL" field on a search is "" on BzAPI, and absent on Compat:
https://api-dev.bugzilla.mozilla.org/latest/bug?id=35&content-type=application/json
https://bugzilla.mozilla.org/bzapi/bug?id=35?content-type=application/json
Gerv
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dkl
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•11 years ago
|
||
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
7bcced3..c2fef44 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Extensions: BzAPI Compatibility → Extensions
You need to log in
before you can comment on or make changes to this bug.
Description
•