[MAGNOLIA-8951] Link generation for non existing node uuid causes unexpected behavior Created: 15/Jun/23  Updated: 20/Jun/23  Resolved: 19/Jun/23

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

Type: Bug Priority: Neutral
Reporter: Antonín Juran Assignee: Antonín Juran
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
supersession
supersedes MGNLCDEP-133 Strange behavior regarding assets dep... Accepted
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
Epic Link: Nucleus Quality Maintenance
Team: Nucleus
Work Started:

 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.


Generated at Mon Feb 12 04:37:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.