Open Bug 1156556 Opened 9 years ago Updated 9 years ago

Improve error messages returned by the API when invalid structures are provided

Categories

(Bugzilla :: WebService, defect)

x86
macOS
defect
Not set
normal

Tracking

()

People

(Reporter: Gijs, Unassigned)

Details

When posting an object to "flags" instead of an array containing objects (JSON REST API, using PUT on an existing bug).
we return:
> Not an ARRAY reference at /data/www/bugzilla.mozilla.org/Bugzilla/WebService/Util.pm line 61

we should return something like:
> Malformed request ('flags' expected array, got object)
Assignee: nobody → webservice
Component: API → WebService
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Summary: Not an ARRAY reference at /data/www/bugzilla.mozilla.org/Bugzilla/WebService/Util.pm line 61 → Improve error messages returned by the API when invalid structures are provided
Version: Production → unspecified
You need to log in before you can comment on or make changes to this bug.