U4-9594 - Media Picker Error if last accessed media folder is deleted

Created by Nathan Skidmore 03 Mar 2017, 12:45:37 Updated by Nathan Skidmore 03 Mar 2017, 12:46:10

What I did?

  1. Create a folder in the Umbraco media section.
  2. Add some images to that folder.
  3. Edit a node with a media picker property. (note: ensure the property is set to start at the root node of media)
  4. Select the media picker within the node. Open the folder you created and select an image. Save the node.
  5. Go to the media section again. Delete the folder and all it's contents. Also delete from the Recycle Bin.
  6. Go back to the node with the media picker property (or actually any node with a media picker property that is set to start at root), try to select an image.

What did you expect to happen? I would expect that I could browse the media folder and select a different media item.

What actually happened? I saw an error- failed to retrieve ancestor data for . I could not browse the media at all, or select a different item. All I can do is upload another file, which I do not want to do.

The only way I could fix this was to edit the media picker property and force it to start in a different folder that actually exists. Then add a new media item and publish. Then I could go back to the property and reset it to start at root again.

Therefore if a user decides to delete a media folder that was last used to select media from, this deletion could prevent them from using the media picker at all, without editing the document type (not something a user should be doing or would know how to do).

Comments

Priority: Major

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category: UI

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.3

Due in version:

Sprint:

Story Points:

Cycle: