[wp-trac] [WordPress Trac] #50781: 500 error caused by customize_changeset_uuid for non-authenticated users

WordPress Trac noreply at wordpress.org
Mon Nov 16 04:44:56 UTC 2020


#50781: 500 error caused by customize_changeset_uuid for non-authenticated users
-------------------------------------------------+-------------------------
 Reporter:  bacardy4                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.7
Component:  Customize                            |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by noisysocks):

 * keywords:  has-patch needs-unit-tests needs-testing dev-feedback => has-
     patch needs-unit-tests needs-testing


Comment:

 I'd suggest we use `400` when the UUID is invalid, `404` when the UUID
 doesn't correspond to any changeset post, and `403` when the user doesn't
 have permission to do something.

 Is displaying the 404 template really necessary? We can solve the original
 issue that @bacardy4 reported simply by passing a 4xx response code to
 `wp_die()`.

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


More information about the wp-trac mailing list