Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
-
-
Empty show more show less
-
DevX 44, DevX 45
-
3
-
Yes
Description
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:
- Config http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:configuration:browser;/modules/publishing-core/config/receivers/magnoliaPublic8080:treeview: to your real public instance or or can config https://demopublic.magnolia-cms.com
- Check https://demopublic.magnolia-cms.com/.rest/cache/v1/defaultPageCache/get?offset=0&pageLength=60 has data (login with superuser)
- Open cache tools app and select browser tab. Login with superuser
- Should receive same items from `https://demopublic.magnolia-cms.com`
- Change http://localhost:8080/magnoliaAuthor/.magnolia/admincentral#app:configuration:browser;/modules/cache-browser-app/config/whitelistedKeyClasses@00:treeview:Â to not use `info.magnolia.module.cache.cachekey.DefaultCacheKey`
- Open cache tools app again and see errorÂ

AC:
- showing empty table instead errorÂ
Â
Workaround: We have config correctly whitelistedKeyClasses or config /modules/publishing-core/config/receivers/magnoliaPublic8080 is false
Checklists
Acceptance criteria
Attachments
Issue Links
- is depended upon by
-
MGNLCACHE-338 FOLLOW UP Remove private func do not use since MGNLCACHE-315
-
- Open
-
1.
|
Implement |
|
Completed | Oanh Thai Hoang |
2.
|
Review |
|
Closed | Rishab Dhar |
3.
|
piQA |
|
Completed | Rishab Dhar |
4.
|
QA |
|
Completed | Dai Ha |