[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 17:08:19 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 TimothyBlynJacobs):
I think I see at least part of it, that right now `rest_insert_attachment`
is firing on both the initial upload and the retry.
----
I wish the flow worked something like...
`POST /wp-json/wp/v2/retry` with the minimal creation data and get
returned a reference.
`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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47987#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list