mozilla / mediawiki-bugzilla

A MediaWiki extension that provides read-only access to the Bugzilla REST API
Mozilla Public License 2.0
55 stars 39 forks source link

"400 Bad Request" when using boolean charts style field names #59

Closed edmorley closed 9 months ago

edmorley commented 10 years ago

Following the advanced boolean search page here: https://wiki.mozilla.org/Bugzilla:BzAPI:Search#Boolean_Charts

This markup (which is supposed to be component=Treeherder OR whiteboard=treeherder:

<bugzilla>
{
"component0-0-1": "Treeherder",
"whiteboard0-0-2": "treeherder"
}
</bugzilla>

Results in:

Bugzilla query error

Server returned unexpected HTTP status: 400 Bad Request

edmorley commented 10 years ago

It seems like the BzAPI docs page might be unclear (could do with some examples) and I need to use something like:

<bugzilla>
{
"field0-0-1": "component",
"value0-0-1": "Treeherder",
"field0-0-2": "whiteboard",
"value0-0-2": "treeherder"
}
</bugzilla>

However that still results in "400 Bad Request".