Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-315

App cacheTools failed to start if setting deserializing instruct data incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 6.0.0, 5.9.8
    • None
    • None
    • None
    • DevX 44, DevX 45
    • 3
    • Yes

      Since https://jira.magnolia-cms.com/browse/MGNLCACHE-304. There has been a case that original size getting from https://git.magnolia-cms.com/projects/MODULES/repos/cache/browse/magnolia-cache-browser-app/src/main/java/info/magnolia/cache/browser/app/CacheBrowserContainer.java#493

      and real size after deserializing instruct data can be different. And it can caused cache app can not open due to below error: 

      Error log:

      ERROR info.magnolia.ui.framework.app.AppControllerImpl 24.08.2023 03:58:27 -- App cacheTools failed to start: Unable to get item id for index: 47 from container using Container.Indexed#getIdByIndex() even though container.size() > endIndex. Returned item id was null. Check your container implementation!
      java.lang.RuntimeException: Unable to get item id for index: 47 from container using Container.Indexed#getIdByIndex() even though container.size() > endIndex. Returned item id was null. Check your container implementation! 

       

      Step to reproduce:

      AC:

      • showing empty table instead error 

       

      Workaround: We have config correctly whitelistedKeyClasses or config /modules/publishing-core/config/receivers/magnoliaPublic8080 is false

        Acceptance criteria

              oanh.thai Oanh Thai Hoang
              oanh.thai Oanh Thai Hoang
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2d 0.5h
                    2d 0.5h