-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.6
-
Fix Version/s: 5.6.0-HF27, 5.8.0-HF02, 5.9.1
-
Component/s: Core
This causes failures when the <options> tag is empty:
<versioningRule typeName="File"> <options lifeCycleState="*" /> </versioningRule>
Error:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.checkElementIndex(LinkedList.java:553) at java.util.LinkedList.get(LinkedList.java:474) at org.nuxeo.ecm.core.versioning.StandardVersioningService.validateOption(StandardVersioningService.java:257) at org.nuxeo.ecm.core.versioning.StandardVersioningService.doPreSave(StandardVersioningService.java:274) at org.nuxeo.ecm.core.versioning.VersioningComponent.doPreSave(VersioningComponent.java:211) at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1853)