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

Rich text add date of last modification into url when save dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.29
    • 6.2.28
    • None
    • None

      Steps to reproduce

      1. Go to demo and open the Resources Files
      2. Edit the config-magnolia.js file and set the Images plugin to true
      3. Move to /mtk2/dialogs/components/textImage.yaml and within the text field (DamRichTextFieldDefinition) include the property:
        configJsFile: /.resources/ckeditor/config-magnolia.js
      4. Open Pages app and create a new page under Basic template
      5. Edit the page and within the main area, create a Text and Image component
      6. On the Text tab, hit o the Image plugin and select and image (.e,g ash-edmonds)
      7. Save selection and save the component
      8. Go to JCR and inspect the link which has been generated:
        <p><img alt="" src="${link:{uuid:{78399215-aed5-4518-9cfc-9b39855f4740},repository:{dam},path:{/tours/ash-edmonds-441220-unsplash},nodeData:{},extension:{jpg}}}" style="height:1080px; width:1620px" /></p>
      9. Now Back to Pages app edit the component, select the image (clic on it) and hit the Image plugin within the Rich text
      10. Check the path to the image is properly loaded within the URL field
      11. Save changes and save the dialog
      12. Go to JCR and inspect the link which has been generated:
        <p><img alt="" src="${link:{uuid:{78399215-aed5-4518-9cfc-9b39855f4740},repository:{dam},path:{/tours/ash-edmonds-441220-unsplash},nodeData:{},extension:{2023-01-27-09-01-42.jpg}}}" style="height:1080px; width:1620px" /></p>
      13. Check that the extension property which was JPG now has the date included

      Expected results

      The extension property of the generated link does not include the date

      Actual results

      The extension property of the generated link does include the date

      Workaround

      N/A

      Development notes

      N/A

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              ccantalapiedra Carlos Cantalapiedra
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 2.75d
                    2.75d