cancel
Showing results for 
Search instead for 
Did you mean: 

Integrity violation

a5sk4s
Champ in-the-making
Champ in-the-making
The following warning (see below) occurs when I cut & paste files into a folder (via CIFS) that has a content role to copy files of that mime type into a subfolder.  Short of the the warning it seems to work fine.  Do I need to be concerned about the warning?


17:30:40,775 WARN  [node.integrity.IntegrityChecker] Found 1 integrity violations:
Duplicate child associations are not allowed:
   Association: Association[ class=ClassDef [ name={http://www.alfresco.org/model/content/1.0}folder], name={http://www.alfresco.org/model/content/1.0}contains, target class={http://www.alfresco.org/model/system/1.0}base, source role=null, target role=null]
   Name: {http://www.alfresco.org/model/content/1.0}move
Andreas
3 REPLIES 3

ajshaw
Champ in-the-making
Champ in-the-making
you probably have something like:

ParentReference parentReference = new parentReference(Constants.ASSOC_CONTAINS, Constants.ASSOC_CONTAINS);

which is in the sample code.  As far as i can tell, the first parameter is the association type, and the second is the name of the child node. These cannot be the same without causing integrity violations. If you change it to :

ParentReference parentReference = new parentReference(Constants.ASSOC_CONTAINS, "a child node");

it wont cause the violation, but when you run the example again, it will, as there will now be two identical child associations.

Aaron Shaw
UK WEB WORKS

ajshaw
Champ in-the-making
Champ in-the-making
i kind of misread your post, but it may be the same thing. Whether it's your doing or not i don't know.

turgayz
Champ in-the-making
Champ in-the-making
The following warning (see below) occurs when I cut & paste files into a folder (via CIFS) that has a content role to copy files of that mime type into a subfolder.

I was just going to report the same warning.
But I did not use CIFS. This warning appears on the console when using the web client too, if you have created a rule on a space to "copy items to a specific space". The first item is copied without a warning, but items copied after the first one causes the warning.