cancel
Showing results for 
Search instead for 
Did you mean: 

Category Tests - multiplicity violation

dbevacqua
Champ in-the-making
Champ in-the-making
Hi

Running LuceneCategoryTest I get the following:



17:25:14,375 WARN  [node.integrity.IntegrityChecker] Found 1 integrity violations:
The association child multiplicity has been violated:
   Association: Association[ class=ClassDef [ name={http://www.alfresco.org/model/content/1.0}category_root], name={http://www.alfresco.org/model/content/1.0}categories, target class={http://www.alfresco.org/model/content/1.0}category, source role=null, target role=null]
   Required child Multiplicity: 1..1
   Actual child Multiplicity: 3




Only a warning, and I know that at least part of the cause is:


nodeService.addChild(catRoot, catRBase, ContentModel.ASSOC_CATEGORIES, QName.createQName(TEST_NAMESPACE, "InvestmentRegion"));
nodeService.addChild(catRoot, catRBase, ContentModel.ASSOC_CATEGORIES, QName.createQName(TEST_NAMESPACE, "MarketingRegion"));
       

(lines 175 & 176 in the HEAD version of the test)

Is this something I should worry about? In a similar test, the transaction comitted fine - everything was written correctly to the repo - but the warning worries me slightly.
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

You have found incorrect multiplicities in the category model.
These will be fixed up shortly

http://www.alfresco.org/jira/browse/AR-793

Regards

Andy

andy
Champ on-the-rise
Champ on-the-rise
Hi

This has been fixed.

Regards

Andy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.