Uploaded image for project: 'Celum DAM Connector '
  1. Celum DAM Connector
  2. CELUM-48

Pagination causes infinite loop of exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.0.4
    • 1.0.3
    • None

      Steps to reproduce

      Unfortunately we don't know. It works with one instance of Celum but not with the other.
      [cchard] are you able to analyse the difference between the DEV and UAT instance?

      This screen recording shows the bug:
      Screen Recording 2022-07-19 at 15.55.23.mov

      java.lang.IndexOutOfBoundsException: fromIndex = -190
      	at java.util.AbstractList.subListRangeCheck(AbstractList.java:505) ~[?:?]
      	at java.util.ArrayList.subList(ArrayList.java:1138) ~[?:?]
      	at info.magnolia.external.dam.celum.app.contentview.CelumListDataProvider.getItemsFromFolder(CelumListDataProvider.java:207) ~[celum-dam-connector-1.0.3.jar:?]
      	at info.magnolia.external.dam.celum.app.contentview.CelumListDataProvider.fetchFromBackEnd(CelumListDataProvider.java:108) ~[celum-dam-connector-1.0.3.jar:?]
      	at com.vaadin.data.provider.AbstractBackEndDataProvider.fetch(AbstractBackEndDataProvider.java:61) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.data.provider.DataProviderWrapper.fetch(DataProviderWrapper.java:91) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at info.magnolia.ui.contentapp.FilterableListDataProvider.fetch(FilterableListDataProvider.java:61) ~[magnolia-ui-framework-6.2.18.jar:?]
      	at com.vaadin.data.provider.DataCommunicator.fetchItemsWithRange(DataCommunicator.java:419) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.data.provider.DataCommunicator.sendDataToClient(DataCommunicator.java:392) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.data.provider.DataCommunicator.beforeClientResponse(DataCommunicator.java:354) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.server.communication.UidlWriter.write(UidlWriter.java:126) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.server.communication.UidlRequestHandler.writeUidl(UidlRequestHandler.java:125) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:93) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1637) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:464) ~[vaadin-server-8.14.1.jar:8.14.1]
      	at info.magnolia.admincentral.AdmincentralServlet.service(AdmincentralServlet.java:119) ~[magnolia-admincentral-6.2.18.jar:?]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[servlet-api.jar:4.0.FR]
      

       

      Expected results

      Any asset can be selected without an error in the UI.

      Actual results

      The UI runs into an infinite loop of errors (see screen recording).

      Workaround

      N/A

      Development notes

      Maybe this would best be verified through unit tests?

      The issue seems to be happening only within the root folder. Chris Chard are you able to check whether the asset "Kathrin Goebel - Pampas.jpg" (ID 911) and the folder "kuratierte Bilder" (ID 42559) are available on the Celum instance? It might be they have been deleted.

        Acceptance criteria

              Unassigned Unassigned
              tszczepanski Tobias Szczepanski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: