[wp-trac] [WordPress Trac] #38417: Post status enum is ignored in collection params, allowing invalid values

WordPress Trac noreply at wordpress.org
Tue Oct 25 19:33:35 UTC 2016


#38417: Post status enum is ignored in collection params, allowing invalid values
--------------------------+-----------------------
 Reporter:  joehoyle      |       Owner:  joehoyle
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  dev-feedback  |     Focuses:
--------------------------+-----------------------
Changes (by jeremyfelt):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38917"]:
 {{{
 #!CommitTicketReference repository="" revision="38917"
 REST API: Adjust `test_get_items_invalid_status_param_is_discarded()`
 after [38911].

 Previously, if an invalid post status was assigned to a media object, the
 object would be returned with an unchanged status. After [38911], an error
 response is returned.

 The assertion in test_get_items_invalid_status_param_is_discarded() needs
 to be updated to account for the expected error response. The test name
 has been changed to
 `test_get_items_invalid_status_param_is_error_response()`.

 Fixes #38417.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38417#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list