mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +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:
@@ -78,6 +78,7 @@ public class VersionableAspectTest extends TestCase
|
||||
private TransactionService transactionService = (TransactionService) applicationContext.getBean("transactionService");
|
||||
private CheckOutCheckInService checkOutCheckInService = (CheckOutCheckInService) applicationContext.getBean("checkOutCheckInService");
|
||||
private AuthenticationService authenticationService = (AuthenticationService) applicationContext.getBean("authenticationService");
|
||||
private VersionableAspect versionableAspect = (VersionableAspect) applicationContext.getBean("versionableAspect");
|
||||
|
||||
private NodeRef document;
|
||||
private NodeRef parentFolder;
|
||||
@@ -85,6 +86,8 @@ public class VersionableAspectTest extends TestCase
|
||||
@Override
|
||||
protected void setUp() throws Exception
|
||||
{
|
||||
versionableAspect.setEnableAutoVersionOnUpdateProps(true);
|
||||
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
@@ -136,6 +139,8 @@ public class VersionableAspectTest extends TestCase
|
||||
@Override
|
||||
protected void tearDown() throws Exception
|
||||
{
|
||||
versionableAspect.setEnableAutoVersionOnUpdateProps(false);
|
||||
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user