question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Media tree doesn't show folders in 7.15.0 any more for folders created before 7.8.0

See original GitHub issue

See for original report: https://our.umbraco.com/forum/using-umbraco-and-getting-started/98092-umbraco-715-media-folders-not-appearing-in-the-tree

In 7.8.0 we introduced a new table cmsMedia in which all media items get populated when they have a mediaPath - sadly, media items of type Folder do not have a path so they never got into the cmsMedia table during the upgrade.

This was no problem until we introduced this part of the query:

https://github.com/umbraco/Umbraco-CMS/blob/v7/dev/src/Umbraco.Core/Persistence/Repositories/EntityRepository.cs#L373

An INNER JOIN on cmsMedia will exclude the old Folders from being return since they do not exist in cmsMedia. When changing this query to a LEFT JOIN, the media tree returns to normal.

Workaround if you are already on 7.15.0 and need to fix your media tree right now

The complete SQL script that works great is in this comment, it has been updated after some tests came in and it is now complete: https://github.com/umbraco/Umbraco-CMS/issues/5848#issuecomment-510801892


This item has been added to our backlog AB#1714

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:27 (16 by maintainers)

github_iconTop GitHub Comments

7reactions
nul800sebastiaancommented, Jul 12, 2019

Sure, there you go: 😊

image

6reactions
benjimediacommented, Jul 12, 2019

This is a reasonably large problem for users. Perhaps HQ needs to highlight this issue on the 7.15.0 release page on Our ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Umbraco 7.15 - Media folders not appearing in the tree
Hi all,. I've upgraded a site through various Umb versions, up to 7.15 and now I've got a strange issue. Within the back...
Read more >
Rick Lynch on Twitter
Media tree doesn't show folders in 7.15.0 any more for folders created before 7.8.0 · Issue #5848 ·... See for original report: https://our ......
Read more >
media browser doesn't see folders
Could you by any chance take a snapshot of your Media Browser (maybe the entire Premiere interface) and a second snapshot of your...
Read more >
Elasticsearch version 7.8.0
The workaround is to substitute the inequality with a NOT IN operator. We have fixed this issue in Elasticsearch 7.10.1 and later versions....
Read more >
Breaking changes in 7.0 | Elasticsearch Guide [7.17]
Using it in indices created before 7.0 will issue deprecation warnings. ... From now on these operations don't have this side-effect anymore.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found