[MGNLUI-5887] Corrupt indexing of linked content and IndexOutOfBoundsException Created: 21/May/20  Updated: 16/Mar/21  Resolved: 16/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File IndexOutOfBoundsException.mkv     Text File RpcInvocationException_621dxdemo.txt     File twoLinksRemoved.mkv    
Issue Links:
Relates
relates to MGNLUI-5829 Index Out Of Bounds Error When Deleti... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

This bug materializes in two ways.

(Checked using the Teaser Row component, not sure if generic. A prerequisite: at least two items (tours) have to be linked to already.)

1) Deleting the first link listed deletes also the second one.

With

  • Active
  • Beach

present, and deleting Active, the Beach is also lost (see videograb):
twoLinksRemoved.mkv

With

  • Active
  • Beach
  • Cultural

present, and deleting the Active, the Beach is also lost, Cultural stays. The following error is logged: 

ERROR o.magnolia.demo.travel.tours.model.TourTeaserModel: Could not retrieve linked tour.ERROR o.magnolia.demo.travel.tours.model.TourTeaserModel: Could not retrieve linked tour.javax.jcr.RepositoryException: invalid identifier:  at org.apache.jackrabbit.core.SessionImpl.getNodeByIdentifier(SessionImpl.java:1140) ~[jackrabbit-core-2.20.0.jar:2.20.0]
...
Caused by: java.lang.IllegalArgumentException:  at org.apache.jackrabbit.core.id.NodeId.<init>(NodeId.java:128) ~[jackrabbit-core-2.20.0.jar:2.20.0] at org.apache.jackrabbit.core.id.NodeId.valueOf(NodeId.java:52) ~[jackrabbit-core-2.20.0.jar:2.20.0] at org.apache.jackrabbit.core.SessionImpl.getNodeByIdentifier(SessionImpl.java:1138) ~[jackrabbit-core-2.20.0.jar:2.20.0]

  

2) Deleting all linked content.

Going from the bottom to the top across the trashbins on the list, all is fine. However, if you start clicking the trashbins from the top, an IndexOutOfBoundsException is thrown when you then click Commit:

IndexOutOfBoundsException.mkv

RpcInvocationException_621dxdemo.txt


Generated at Mon Feb 12 09:31:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.