-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 8.2
-
Component/s: Core
-
Backlog priority:900
When an ArrayProperty element other than the first is dirty during savedocument validation, the SimpleTypeField constraint on the element is not validated.
The bug causing this issue appears to be found on line 471 in the following method of the Nuxeo 8.2 release of class
private List<ConstraintViolation> validateListTypeProperty(Schema schema, List<PathNode> path, Property prop, boolean dirtyOnly)
The index++; statement on line 471 needs to be moved down one line so that it is outside the if condition. Then the index will be incremented during each for loop iteration.