mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
7653: Update and added deployment icons 7655: Fixed multithreaded test case to handle case where threads can't get started due to lack of available DB connections. 7657: AR-1903: Text attachments should be treated the same way as other attachments. 7661: Fixed duplicate index creation for column that is also declared unique 7662: Additional indexes related to permissions 7664: Fixed query for specific property types 7667: Used existing attachable aspect for email attachments - effectively reversing association direction. 7682: Added AVM Console page to webapp (admin user protected) 7683: Merged V2.1 to V2.2 7642: Fix for WCM-949 7668: Debugging output for getAPath(). Possible partial fix for LazyInitialization errors seen by some customers 7672: Fixed sub optimal tree pruning in filesystem deployment git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8442 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1534,6 +1534,10 @@ public class AVMRepository
|
||||
{
|
||||
throw new AVMNotFoundException("Could not find node: " + desc);
|
||||
}
|
||||
if (fgLogger.isDebugEnabled())
|
||||
{
|
||||
fgLogger.debug("Getting A Path for: " + desc);
|
||||
}
|
||||
List<String> components = new ArrayList<String>();
|
||||
return recursiveGetAPath(node, components);
|
||||
}
|
||||
@@ -1700,11 +1704,19 @@ public class AVMRepository
|
||||
AVMStore store = fAVMStoreDAO.getByRoot(node);
|
||||
if (store != null)
|
||||
{
|
||||
if (fgLogger.isDebugEnabled())
|
||||
{
|
||||
fgLogger.debug("Found path in HEAD of: " + store.getName());
|
||||
}
|
||||
return new Pair<Integer, String>(-1, makePath(components, store.getName()));
|
||||
}
|
||||
VersionRoot vr = fVersionRootDAO.getByRoot(node);
|
||||
if (vr != null)
|
||||
{
|
||||
if (fgLogger.isDebugEnabled())
|
||||
{
|
||||
fgLogger.debug("Found path in version " + vr.getVersionID() + " in: " + vr.getAvmStore().getName());
|
||||
}
|
||||
return new Pair<Integer, String>(vr.getVersionID(), makePath(components, vr.getAvmStore().getName()));
|
||||
}
|
||||
return null;
|
||||
@@ -1713,8 +1725,12 @@ public class AVMRepository
|
||||
for (ChildEntry entry : entries)
|
||||
{
|
||||
String name = entry.getKey().getName();
|
||||
if (fgLogger.isDebugEnabled())
|
||||
{
|
||||
fgLogger.debug("Found component: " + name);
|
||||
}
|
||||
components.add(name);
|
||||
Pair<Integer, String> path = recursiveGetAPath(entry.getKey().getParent(), components);
|
||||
Pair<Integer, String> path = recursiveGetAPath(AVMNodeUnwrapper.Unwrap(entry.getKey().getParent()), components);
|
||||
if (path != null)
|
||||
{
|
||||
return path;
|
||||
|
Reference in New Issue
Block a user