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:
Alan Davis
2015-03-07 08:08:37 +00:00
parent 2443a9b771
commit 12c3514477
2 changed files with 2 additions and 2 deletions

View File

@@ -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())

View File

@@ -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