[wp-trac] [WordPress Trac] #39284: Empty REST API JSON bodies should not return an error.

WordPress Trac noreply at wordpress.org
Wed Dec 14 19:22:44 UTC 2016


#39284: Empty REST API JSON bodies should not return an error.
--------------------------+-----------------------------
 Reporter:  davemedema    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is a follow-up to #38547. I see the need to validate JSON bodies and
 provide appropriate feedback if the format is invalid, but an empty body
 should not be invalid. There are legitimate use cases for POSTing empty
 bodies in a REST API, especially considering the environments that
 WordPress tends to run in. Empty body POSTs are valid requests, should be
 a valid WP REST API request.

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


More information about the wp-trac mailing list