[EXTDAM-395] S3 asset referenced in a richText field does not render proper links in freemarker generated page Created: 04/Jul/23  Updated: 20/Jul/23

Status: Open
Project: External DAMs
Component/s: s3
Affects Version/s: 1.1.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Harry Moore Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen_Capture_-_Jul_4__10_41_AM.png     PNG File Screen_Capture_-_Jul_4__10_42_AM.png     PNG File Screen_Capture_-_Jul_4__10_43_AM.png     PNG File Screen_Capture_-_Jul_4__10_44_AM-1.png     PNG File Screen_Capture_-_Jul_4__10_44_AM.png    
Issue Links:
causality
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:
Epic Link: AuthorX Support
Team: AuthorX

 Description   

Steps to reproduce

  1. create a component template with dialog:
    form:
    properties:
    text:
    label: Text
    $type: richTextField
    required: true
    source: true
    configJsFile: /.resources/iconnect/webresources/ckeditor/config-magnolia-extended.js

  2. create freemarker for the component template:

<div class="page-content">
${cmsfn.decode(content).text!}
<divclass="clear"></div>
</div>

  1. Create an instance of the component
  2. edit the richtext field by browsing the S3 DAM and select any asset
  3. save
  4. rendered page creates a bad link to the S3 DAM asset

 

This is a partial example of the text which is saved (view of the page/component from the JCR app):
<a href="${link:{uuid:

{hig-dam-bucket/i-finance/documents/H/HARTFORD INSURANCE COMPANY OF ILLINOIS 2022.PDF}

,repository:{dam},path:{hig-dam-bucket/i-finance/documents/H/HARTFORD INSURANCE COMPANY OF ILLINOIS 2022.PDF}}}">CorpFin -HARTFORD INSURANCE COMPANY OF ILLINOIS 2022</a>
 

Expected results

The created link should render the referenced document

Actual results

error message is displayed when clicking the link. see image

Workaround

Development notes


Generated at Mon Feb 12 01:54:46 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.