Copied Folders/FileAssets not indexed properly
This is follow up fix task for: https://github.com/dotCMS/dotCMS/issues/1685
The same problem as originally reported still exists:
1) Create an advanced template with the following code on it:
set($showSubgalleryTitle=false)
set($showPhotoTitle = false)
set ($thumbnailWidth = "150")
set ($thumbnailHeight = "150")
< h1> EXISTING assets</h1>
photoGallery("/resources/images")
<hr/>
< h1> COPIED assets</h1>
photoGallery("/images/icons/images")â
2) Creat an html page and use the advanced template... you will see the Existing Assets display images 3) Now copy the images folder in the resources folder and paste the images folder into the /images/icons folder 4) Now go back to your html page... the copied file assets should also be displaying now on the page but they do not unless you re-index... that is the bug. Please follow these steps exaclty to verify when applying the code fix.
Tested on master running dotCMS on postrgres.
fixed it in previous commit.
fixed issue was the reindexunderFolder method wasn't being used.