mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
98971: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud) 98947: Merged DEV to 5.0.N (5.0.2) 98946: MNT-13556 : Integrity check allows null values for mandatory properties - fixed failing tests and new issue caused by initial changes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@98987 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -422,7 +422,7 @@ public class UserUsageTrackingComponent extends AbstractLifecycleBean implements
|
||||
int clearCount = 0;
|
||||
for (NodeRef personNodeRef : personNodeRefs)
|
||||
{
|
||||
nodeService.setProperty(personNodeRef, ContentModel.PROP_SIZE_CURRENT, null);
|
||||
nodeService.setProperty(personNodeRef, ContentModel.PROP_SIZE_CURRENT, "0");
|
||||
usageService.deleteDeltas(personNodeRef);
|
||||
|
||||
if (logger.isTraceEnabled())
|
||||
|
@@ -963,7 +963,7 @@ public class MultiTDemoTest extends TestCase
|
||||
// find person
|
||||
final NodeRef personNodeRef = personService.getPerson(userName);
|
||||
// clear user usage
|
||||
nodeService.setProperty(personNodeRef, ContentModel.PROP_SIZE_CURRENT, "");
|
||||
nodeService.setProperty(personNodeRef, ContentModel.PROP_SIZE_CURRENT, "0");
|
||||
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
|
||||
{
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user