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

Fix inconsistency between CoreSession#hasChildren and CoreSession#getChildren in 6.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF45
    • Component/s: Core VCS
    • Release Notes Summary:
      The CoreSession#hasChildren method discards the obsolete document types
    • Backlog priority:
      450
    • Sprint:
      nxcore 9.10.2
    • Story Points:
      2

      Description

      NXP-18192 has been fixed in 7.10 and later versions but is happening in 6.0 with the same stack trace:

      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
      	at java.util.ArrayList.get(ArrayList.java:411)
      	at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailFolderishFactory.getThumbnail(ThumbnailFolderishFactory.java:37)
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.getThumbnail(ThumbnailServiceImpl.java:93)
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.getThumbnail(ThumbnailAdapter.java:43)
      	at org.nuxeo.ecm.platform.thumbnail.seam.ThumbnailManagerBean.downloadThumbnail(ThumbnailManagerBean.java:72)
      	at sun.reflect.GeneratedMethodAccessor363.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      

      This seems to happen when there are many documents returned after several searches. No exact test case was provided but the stack being the same and the issue not backported so far it is safe to assume a backport will fix this.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 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 hour
                  1h