mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
17307: Merged DEV/BELARUS/V3.2-2009_10_19 to V3.2 17121: ETHREEOH-2999: Accessing Recent snapshots fails in a web project that is created from an already existing project 17223: ETHREEEOH-2999: (post-review changes) 17346: ETHREEOH-2824 - further perf improvement for multiple single submits (to active workflow sandboxes) from large modified list 17375: Fix ETHREEOH-1643 - WCM revert file & version history, including a few unreported WCM / UI revert file issues 17380: ETHREEOH-1643 - fix build/test fallout git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18110 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.SortedMap;
|
||||
|
||||
import org.alfresco.repo.avm.util.AVMUtil;
|
||||
import org.alfresco.repo.domain.PropertyValue;
|
||||
import org.alfresco.service.cmr.avm.AVMBadArgumentException;
|
||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
@@ -703,10 +704,11 @@ public class AVMLockingAwareService implements AVMService, ApplicationContextAwa
|
||||
*/
|
||||
public void removeNode(String parent, String name)
|
||||
{
|
||||
grabLock(parent + '/' + name);
|
||||
String path = AVMUtil.extendAVMPath(parent, name);
|
||||
grabLock(path);
|
||||
fService.removeNode(parent, name);
|
||||
String[] storePath = parent.split(":");
|
||||
fService.createSnapshot(storePath[0], null, null);
|
||||
fService.createSnapshot(storePath[0], null, "Removed "+path);
|
||||
String webProject = getWebProject(storePath[0]);
|
||||
if (webProject != null)
|
||||
{
|
||||
@@ -722,7 +724,7 @@ public class AVMLockingAwareService implements AVMService, ApplicationContextAwa
|
||||
grabLock(path);
|
||||
fService.removeNode(path);
|
||||
String[] storePath = path.split(":");
|
||||
fService.createSnapshot(storePath[0], null, null);
|
||||
fService.createSnapshot(storePath[0], null, "Removed "+path);
|
||||
String webProject = getWebProject(storePath[0]);
|
||||
if (webProject != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user