Merged BRANCHES/DEV/V3.4-BUG-FIX to HEAD:

32244: Fix for ALF-11435:
   32246: Fix for ALF-11435 (part 2)
   32247: Fix for ALF-11435 (part 3)
   plus make sure that hidden files have the noindex aspect applied

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32388 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Steven Glover
2011-11-29 14:28:39 +00:00
parent 56e64bd627
commit ea53ffea50
13 changed files with 446 additions and 150 deletions

View File

@@ -746,7 +746,7 @@ public class ImapServiceImpl implements ImapService, OnCreateChildAssociationPol
this.folderCacheLock.readLock().unlock();
}
}
List<FileInfo> fileInfos = fileFolderService.listFiles(contextNodeRef);
List<FileInfo> fileInfos = fileFolderService.removeHiddenFiles(fileFolderService.listFiles(contextNodeRef));
final NavigableMap<Long, FileInfo> currentSearch = new TreeMap<Long, FileInfo>();
switch (viewMode)
@@ -1047,7 +1047,7 @@ public class ImapServiceImpl implements ImapService, OnCreateChildAssociationPol
// Only list this folder if we have a wildcard name. Otherwise do a direct lookup by name.
if (name.contains("*") || name.contains("%"))
{
list = fileFolderService.listFolders(root);
list = fileFolderService.removeHiddenFiles(fileFolderService.listFolders(root));
}
else
{