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

Fix handling of limit/offset in a MutiDirectory query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.10, 9.10
    • Fix Version/s: 8.10-HF25, 9.10-HF02, 10.1
    • Component/s: Directory
    • Release Notes Summary:
      Limit and offset settings are correctly handled by a multi-directory.
    • Tags:
    • Backlog priority:
      500

      Description

      Usage of a org.nuxeo.ecm.directory.multi.MultiDirectory on dc:nature over several vocabularies (defined in Studio).

      Symptom:
      SuggestDirectoryEntries causes a java.lang.IndexOutOfBoundsException :

      Caused by: java.lang.IndexOutOfBoundsException: fromIndex = -1
              at java.util.ArrayList.subListRangeCheck(ArrayList.java:1008)
              at java.util.ArrayList.subList(ArrayList.java:1002)
              at org.nuxeo.ecm.directory.BaseSession.query(BaseSession.java:331)
              at org.nuxeo.ecm.automation.core.operations.services.directory.SuggestDirectoryEntries.run(SuggestDirectoryEntries.java:514)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:164)
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:177)
              ... 96 more
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d