Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8951

Link generation for non existing node uuid causes unexpected behavior

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Neutral
    • None
    • 6.2.35
    • None
    • None

    Description

      Steps to reproduce

      1.  Link "/destinations/polar.png" asset to a richtext field on a Text and image component - link <a href="/dam/jcr:baa86f2d-b1c6-413e-9879-bc2b166f9f1d/polar.png" class="disabled">polar</a> is generated and the asset can be downloaded.
      2. Delete the "/destinations/polar.png" asset and rename "/destinations/asia.png" to "/destinations/polar.png"

      Expected results

      Link in the richtext field on the Text and image component is still <a href="/dam/jcr:baa86f2d-b1c6-413e-9879-bc2b166f9f1d/polar.png" class="disabled">polar</a> and the asset can not be downloaded.

      Actual results

      Link in the richtext field on the Text and image component is regenerated to <a href="/dam/jcr:20e4d7f7-3160-4670-9acb-5c87231088dd/asia.png" class="disabled">polar</a> and the asset can be downloaded.

      Development notes

      LinkUtil#createLinkInstance generates a Link based on node path if provided node uuid does not exists.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ajuran Antonín Juran
                ajuran Antonín Juran
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD