[wp-trac] [WordPress Trac] #38547: REST-API Json decode error will not give back an error

WordPress Trac noreply at wordpress.org
Fri Oct 28 13:24:03 UTC 2016


#38547: REST-API Json decode error will not give back an error
---------------------------+-----------------------------
 Reporter:  danielhuesken  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  REST API       |    Version:  4.6.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 If you send a Request to the Rest API with a defect json in body than it
 will not return a error. That is not so good, because you get back a
 response that suggest all is ok.

 Method: POST

 The problem is located at:
 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api
 /class-wp-rest-request.php#L673

 The 'return;' let it looks like all is ok and the answere will be the
 normel responce.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38547>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list