U4-11335 - Failed to retrieve data for media id undefined

Created by russellshome 15 May 2018, 04:12:43 Updated by Sebastiaan Janssen 25 Jun 2018, 09:42:57

Tags: Up For Grabs PR

What did you do?

  1. In chrome go to a website other than the umbraco site, right click - copy image
  2. In umbraco site HTML editor paste image
  3. Left click on image in HTML editor, left click on "Media Picker"

What did you expect to happen?

No error

What actually happened?

Error: Failed to retrieve data for media id undefined

4 Attachments

Download paste-image-after.mp4

Download paste-image-before.mp4


Sebastiaan Janssen 20 Jun 2018, 12:24:51

It took me a minute to figure out what you were doing but I got it now, pasting the image is fine, but then clicking the media picker button results in an error.

It's probably something pretty easy where we can try-catch this error and just allow people to select an image from the media library instead of the pasted image.

I've put this in "Up for grabs" if you or someone else wants to work on this!

Marcel van Helmont 21 Jun 2018, 18:05:17

@sebastiaan It was indeed a small fix checking if target id is not undefined

PR: https://github.com/umbraco/Umbraco-CMS/pull/2716

Dave Woestenborghs 23 Jun 2018, 08:46:36

I attached 2 video's showing the before and after situation

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions:

Due in version: 7.12.0


Story Points: