Closed Bug 1049830 Opened 10 years ago Closed 10 years ago

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

Categories

(bugzilla.mozilla.org :: API, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

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
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
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.