Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-13162

Don't fail versioning if no versioning options are specified

    XMLWordPrintable

    Details

    • 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

      Description

      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)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: