Open Bug 1165880 Opened 9 years ago Updated 9 years ago

When adding a comment via the API, a malformed request results in a comment of "ARRAY(0x12345678)" instead of an error

Categories

(Bugzilla :: WebService, defect)

defect
Not set
normal

Tracking

()

People

(Reporter: decoder, Unassigned)

Details

I just hit two issues when writing Python code that posts a comment using the native REST API:


1. When submitting arrays/dicts in the "comment" field of the comment, Bugzilla will not error, but post something like ARRAY(0x7f5b5480eee8) to the bug. This was caused by a bug in my code, but the malformed request should probably be detected.

2. When using JSON booleans (true/false) for the "is_private" field, Bugzilla seems to always use true, even if I specify false. When I use 0/1 respectively in that field, it works fine. So there is probably a bug with JSON boolean conversion somewhere.
splitting the bug into so they can be individually tracked.
second issue is now bug 1165897.
Summary: Issues when posting comments via native REST API → When adding a comment via the API, a malformed request results in a comment of "ARRAY(0x12345678)" instead of an error
You need to log in before you can comment on or make changes to this bug.