Doing a post to the web services API to set a field for a reviewrequest
with a missing value should result in a JSON response like this:
{
"stat": "fail",
"err": {
"msg": "Missing value for Summary",
"code": 301
}
}
Instead I get a success response:
{"stat": "ok", "invalid_summary": null, "summary": ""}
This is confusing and inconsistent. See below the full HTTP request and
response that demonstrates the problem
POST
http://codereview.corp.yahoo.com:8000/api/json/reviewrequests/98/draft/set/summary/
Content-Length: 6
Content-Type: application/x-www-form-urlencoded
value=
HTTP/1.0 200 OK
Cache-Control: max-age=0
Date: Tue, 26 Feb 2008 22:21:42 GMT
ETag: 4d7d59f3dd2e75459df8f255fa8af87f
Server: WSGIServer/0.1 Python/2.4.4
Vary: Cookie, Accept-Language
Content-Language: en-us
Content-Type: text/plain
Expires: Tue, 26 Feb 2008 22:21:42 GMT
Last-Modified: Tue, 26 Feb 2008 22:21:42 GMT
Client-Date: Tue, 26 Feb 2008 10:58:48 GMT
Client-Peer: 10.72.88.210:8000
Client-Response-Num: 1
{"stat": "ok", "invalid_summary": null, "summary": ""}