Uploaded image for project: 'External DAMs'
  1. External DAMs
  2. EXTDAM-395

S3 asset referenced in a richText field does not render proper links in freemarker generated page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 1.1.3
    • s3
    • None

      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

        Acceptance criteria

              Unassigned Unassigned
              hmoore@tbscg.com Harry Moore
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD