AnsweredAssumed Answered

Issue with REGEX constrain in Alfresco Share

Question asked by mitpatoliya Moderator on May 27, 2014
Latest reply on Jun 3, 2014 by ipirat

I having REGEX constrain on one of the property with datatype as integer.

There is one issue seems like bug.

If value is being successfully validated from user interface on server side it fails and If I add non-matching value it gives error on client side it self so this looks like some bug.

Error which I got when I add proper value.


    <constraint name="test:fractionConstrain" type="REGEX">
        <parameter name="expression"><value>.*[^0-9].*</value></parameter>
        <parameter name="requiresMatch"><value>false</value></parameter>
     </constraint>


org.alfresco.repo.node.integrity.IntegrityException: 04270037 Found 1 integrity violations:
Invalid property value:
   Node: workspace://SpacesStore/e9ddba34-64bc-4626-b4f0-2d599d71de56
   Type: {com.asm.recipe.model}nutritions
   Property: {com.asm.recipe.model}servingSize
   Constraint: 04270036 Value '5' matches regular expression: .*[^0-9].*
   at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:661)

Outcomes