Bug.search with count_only = 1 does not work for JSONRPC and REST but does work for XMLRPC

RESOLVED FIXED

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: dkl, Assigned: dkl)

Tracking

Production

Details

(Assignee)

Description

4 years ago
When count_only was added to Bug.search, REST was not around and XMLRPC allows for passing a scalar value back. JSONRPC and REST need a hash structure to be passed back by the webservice method. To make things worse, the POD states that we return a hash containing the key 'bug_count' with the number of bugs. Clearly we do not do that either :(

Example URL:

http://bugzilla.mozilla.org/rest/bug?bug_status=NEW&component=Drag%20and%20Drop&product=Core&count_only=1

Fixing by special casing XMLRPC, otherwise return { "bug_count":"1234" } as the docs state.

dkl
(Assignee)

Comment 1

4 years ago
Committed and should be in the next push to production.

To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   c0dd51d..c57791d  master -> master
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.