Merged V2.1 to HEAD

6606: Removed annoying warning message shown when developing custom client side validation handlers
   6607: Fixed lock removal bug when deleting sandbox.
   6608: Fix for AWC-601  - simple/advanced search user error message now "friendly" when lucene query parser exception occurs.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-09-11 03:16:28 +00:00
parent 57554088ae
commit f443bd467d
2 changed files with 7 additions and 3 deletions

View File

@@ -187,6 +187,7 @@ public class AVMServiceTest extends AVMServiceTestBase
finally
{
fService = oldService;
fLockingService.removeStoreLocks("main");
fLockingService.removeWebProject("main");
authService.authenticate("admin", "admin".toCharArray());
}

View File

@@ -546,16 +546,19 @@ public class AVMLockingServiceImpl implements AVMLockingService
{
return;
}
List<String> toDelete = new ArrayList<String>();
for (Map.Entry<String, Attribute> entry: project.entrySet())
{
AVMLock lock = new AVMLock(entry.getValue());
if (lock.getStore().equals(store))
{
project.remove(entry.getKey());
toDelete.add(entry.getKey());
}
}
keys.remove(2);
fAttributeService.setAttribute(keys, webProject, project);
for (String name : toDelete)
{
fAttributeService.removeAttribute(keys, name);
}
}
/* (non-Javadoc)