[wp-trac] [WordPress Trac] #47987: REST API: Add handling of PHP fatal errors while resizing images after upload

WordPress Trac noreply at wordpress.org
Tue Oct 1 18:48:28 UTC 2019


#47987: REST API: Add handling of PHP fatal errors while resizing images after
upload
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  highest omg bbq                      |   Milestone:  5.3
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests dev-      |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:22 TimothyBlynJacobs]:
 > I wish the flow worked something like...
 >
 > `POST /wp-json/wp/v2/retry/{ref}` to process the action that might fail
 part way through. This would be the only endpoint where an empty 500
 response would be expected.
 > `DELETE /wp-json/wp/v2/retry/{ref}` to delete the action.

 Yeah, I was imagining something like that too. Looks a lot better and more
 consistent with what's actually happening :)

 Perhaps not the `POST /wp-json/wp/v2/retry`. This is the "standard" upload
 end point, right? But would be great to have a separate end point for
 post-processing after uploading.

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


More information about the wp-trac mailing list