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

Fix inconsistency between CoreSession#hasChildren and CoreSession#getChildren

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10
    • Component/s: Core VCS

      Description

      For a folder where VCS does not know the children types, CoreSession#hasChildren returns true, but CoreSession#getChildren}} returns an empty list.

      For instance, for a folder containing only Picture documents, after removing nuxeo-dam, an exception is thrown in ThumbnailFolderishFactory:

      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      	at java.util.ArrayList.get(ArrayList.java:429)
      	at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailFolderishFactory.getThumbnail(ThumbnailFolderishFactory.java:37)
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.getThumbnail(ThumbnailServiceImpl.java:86)
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.getThumbnail(ThumbnailAdapter.java:42)
      	at org.nuxeo.ecm.platform.thumbnail.seam.ThumbnailManagerBean.downloadThumbnail(ThumbnailManagerBean.java:69)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: