mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
Fixed failing test in AVMServiceTest.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6045 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
parent
af8c77753f
commit
b45b923c97
@ -85,19 +85,22 @@ public class AVMUndoSandboxListAction extends ActionExecuterAbstractBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Map<QName, PropertyValue> dnsProperties = fAVMService.queryStorePropertyKey(item.getSecond().split(":")[0], QName.createQName(null, ".dns%"));
|
final Map<QName, PropertyValue> dnsProperties = fAVMService.queryStorePropertyKey(item.getSecond().split(":")[0], QName.createQName(null, ".dns%"));
|
||||||
String webProject = dnsProperties.keySet().iterator().next().getLocalName();
|
if (dnsProperties.size() == 1)
|
||||||
webProject = webProject.substring(webProject.lastIndexOf('.') + 1, webProject.length());
|
{
|
||||||
String path = item.getSecond().substring(item.getSecond().indexOf(":") + 1);
|
String webProject = dnsProperties.keySet().iterator().next().getLocalName();
|
||||||
if (fgLogger.isDebugEnabled())
|
webProject = webProject.substring(webProject.lastIndexOf('.') + 1, webProject.length());
|
||||||
fgLogger.debug("unlocking file " + path + " in web project " + webProject);
|
String path = item.getSecond().substring(item.getSecond().indexOf(":") + 1);
|
||||||
|
if (fgLogger.isDebugEnabled())
|
||||||
|
fgLogger.debug("unlocking file " + path + " in web project " + webProject);
|
||||||
|
|
||||||
if (fAVMLockingService.getLock(webProject, path) != null)
|
if (fAVMLockingService.getLock(webProject, path) != null)
|
||||||
{
|
{
|
||||||
fAVMLockingService.removeLock(webProject, path);
|
fAVMLockingService.removeLock(webProject, path);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fgLogger.warn("expected file " + path + " in " + webProject + " to be locked");
|
fgLogger.warn("expected file " + path + " in " + webProject + " to be locked");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user