Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5887

Corrupt indexing of linked content and IndexOutOfBoundsException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • 6.2.1
    • None
    • None

    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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD