[wp-trac] [WordPress Trac] #37583: Shiny Updates: Enhance error reporting when response is invalid

WordPress Trac noreply at wordpress.org
Fri Aug 5 12:38:07 UTC 2016


#37583: Shiny Updates: Enhance error reporting when response is invalid
--------------------------------------------+-----------------------
 Reporter:  ocean90                         |      Owner:
     Type:  defect (bug)                    |     Status:  new
 Priority:  normal                          |  Milestone:  4.6
Component:  Upgrade/Install                 |    Version:  trunk
 Severity:  normal                          |   Keywords:  has-patch
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/js/updates.js?rev=38199&marks=1561-1585#L1544
 wp.updates.isValidResponse()] checks the Ajax response and tries to
 provide a meaningful error message in case of an error. This doesn't work
 always:

 * Invalid nonce: "Update Failed: -1"
 * Connection lost: "Update Failed: error" (see #37550 for a screenshot)
 * 404 error: "Update Failed: $html" (https://cloudup.com/c-2MST8o_RE,
 unescaped in the admin notice)

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


More information about the wp-trac mailing list