Skip to content

Media & Text - Block validation error occurs if media upload finishes when the post is closed #1509

@pinarol

Description

@pinarol

Detected during testing #1503.
Also reproducible @ 9f4afd6 develop
Tested with iPhone 8 plus, iOS 13.1

  • Add media & text block, tap placeholder and choose Choose from device
  • Start upload but before it finishes close the post by selecting Update Post
  • Wait until the upload finishes
  • Re-open the post and you'll see:

Screen Shot 2019-10-28 at 15 24 52

  • Switch to html mode, meda-text is still showing the upload id:

Screen Shot 2019-10-29 at 11 09 33

mediaTextUpload2

Expected:

  • Add media & text block, tap placeholder and choose Choose from device
  • Start upload but before it finishes close the post by selecting Update Post
  • Wait until the upload finishes
  • Re-open the post
  • Verify that no red screen occurs
  • Switch to html mode
  • Verify that the mediaId is correct(usually a shorter and a positive number)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions