mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
108038: Merged 5.0.N (5.0.3) to HEAD-BUG-FIX (5.1/Cloud) 107601: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.3) 107332: Merged DEV to V4.2-BUG-FIX (4.2.5) 105981 : MNT-12226 : Alfresco fails to version metadata after uploading new content version even when autoVersionOnUpdateProps=true - Added config for upload.post.js webscript. So now users may configure versioning for Share APP separatelly. 106157 : MNT-12226 : Alfresco fails to version metadata after uploading new content version even when autoVersionOnUpdateProps=true - Updated previous solution so that if no config provided for upload.post.js webscript then default model versioning strategy used., 107537: MNT-12226 : Alfresco fails to version metadata after uploading new content version even when autoVersionOnUpdateProps=true - Fixed build failure. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@108069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -64,6 +64,7 @@ import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.repo.tenant.TenantUtil;
|
||||
import org.alfresco.repo.tenant.TenantUtil.TenantRunAsWork;
|
||||
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
|
||||
import org.alfresco.repo.version.VersionableAspect;
|
||||
import org.alfresco.service.cmr.action.ActionCondition;
|
||||
import org.alfresco.service.cmr.action.ActionService;
|
||||
import org.alfresco.service.cmr.dictionary.AspectDefinition;
|
||||
@@ -132,6 +133,7 @@ import org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory;
|
||||
import org.apache.chemistry.opencmis.commons.server.CallContext;
|
||||
import org.apache.chemistry.opencmis.commons.server.CmisService;
|
||||
import org.apache.chemistry.opencmis.commons.spi.Holder;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
@@ -166,6 +168,7 @@ public class CMISTest
|
||||
private RuleService ruleService;
|
||||
private NodeArchiveService nodeArchiveService;
|
||||
private DictionaryService dictionaryService;
|
||||
private VersionableAspect versionableAspect;
|
||||
|
||||
private AlfrescoCmisServiceFactory factory;
|
||||
|
||||
@@ -338,6 +341,15 @@ public class CMISTest
|
||||
this.auditDAO = (AuditDAO) ctx.getBean("auditDAO");
|
||||
this.nodeArchiveService = (NodeArchiveService) ctx.getBean("nodeArchiveService");
|
||||
this.dictionaryService = (DictionaryService) ctx.getBean("dictionaryService");
|
||||
|
||||
this.versionableAspect = (VersionableAspect) ctx.getBean("versionableAspect");
|
||||
this.versionableAspect.setEnableAutoVersionOnUpdateProps(true);
|
||||
}
|
||||
|
||||
@After
|
||||
public void after()
|
||||
{
|
||||
this.versionableAspect.setEnableAutoVersionOnUpdateProps(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user