wordpress-mobile / wordpress-mobile/WordPress-iOS
Editor: Closing a post with an ongoing media upload in Cover block results in malformed content
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
Expected behavior
Closing a post with ongoing media uploads should produce valid content.
Actual behavior
Closing a post with ongoing media uploads produces malformed content.
Steps to reproduce the behavior
[!NOTE]
It's recommended to use the Network Link Conditioner to ensure the upload duration allows you to close the editor before finishes.
- Add a Cover block and tap the placeholder.
- Select "Choose from device" option.
- Select an image from the device and confirm the selection.
- While the image is uploading, leave the editor.
- Verify that you see the Uploading media... placeholder in the post summary.
- Wait for the upload to complete while in the post list.
- Re-open the post with the Cover block.
- Observe the Cover block is rendered with the error
Problem displaying block.
Tested on iPhone 11, iOS 17.0.2, Jetpack iOS / WordPress iOS 24.5.0.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Cover block workflow: begin an image upload, leave the editor, wait for completion, and reopen the post. Trace the Cover block's upload and post-saving handling to find why completed uploads produce malformed content; done means the reopened block renders normally without "Problem displaying block".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100