VideoPress: Recently uploaded private video thumbnails result in a 404 error #39524
Open
Description
There are two related issues:
- When saving the new thumbnail for a video, the old thumbnail displays for a second
- When reloading the page shortly after clicking the
Save changes
button, the process gets interrupted and results in the 404 of the thumbnail image.
I would say that fixing the issue 1 might reduce the occurrence of the issue 2 - because I can imagine that when the user sees the old thumbnail in there after saving the changes, they may want to reload the page quickly - which then triggers the issue 2.
To fix the issue 2, I think we may need to review the logic that changes the thumbnail and make sure that if the process is interrupted at any point, we will fall back to the original thumbnail.
Steps to reproduce:
We were able to reproduce the issue on a Jurassic Ninja site.
- Navigate to Jetpack > VideoPress.
- Upload a new video and open it by clicking on the
Edit video details
button. - Make the video private.
- Choose a custom thumbnail for it and then while the changes are being saved, quickly reload the page.
- You should be able to observe both issues described in this issue.
Related discussion: p1726809473248039-slack-C02LT75D3.
Similar issue: #27169.
Metadata
Assignees
Labels
Type
Projects
Status
Triaged