[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: PNG File error.png    
Issue Links:
dependency
is depended upon by MGNLCACHE-338 FOLLOW UP Remove private func do not ... Open
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLCACHE-316 Implement Sub-task Completed Oanh Thai Hoang  
MGNLCACHE-317 Review Sub-task Closed Rishab Dhar  
MGNLCACHE-318 piQA Sub-task Completed Rishab Dhar  
MGNLCACHE-319 QA Sub-task Completed Dai Ha  
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: DeveloperX
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:

  • showing empty table instead error 

 

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

Generated at Sun Feb 11 23:54:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.