[MGNLCACHE-315] App cacheTools failed to start if setting deserializing instruct data incorrectly Created: 09/Aug/23 Updated: 23/Oct/23 Resolved: 01/Sep/23 |
|
| Status: | Closed |
| Project: | Cache Modules |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0, 5.9.8 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Oanh Thai Hoang | Assignee: | Oanh Thai Hoang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | 0d | Remaining Estimate: | 0d |
| Σ Time Spent: | 2d 0.5h | Time Spent: | 2d 0.5h |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
|||||||||||||||||||||||||
| Issue Links: |
|
|||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||
| Template: |
|
|||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
|||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
|||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
|||||||||||||||||||||||||
| Epic Link: | DevX Bucket | |||||||||||||||||||||||||
| Sprint: | DevX 44, DevX 45 | |||||||||||||||||||||||||
| Story Points: | 3 | |||||||||||||||||||||||||
| Team: | ||||||||||||||||||||||||||
| Work Started: | ||||||||||||||||||||||||||
| Approved: |
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:
AC:
Workaround: We have config correctly whitelistedKeyClasses or config /modules/publishing-core/config/receivers/magnoliaPublic8080 is false |
| Comments |
| Comment by Oanh Thai Hoang [ 22/Aug/23 ] |
|
Failed with testing with over 60 cached items size from public instance. Cached app in author instance just get only maximum as 60 when scrolling |