[MAGNOLIA-8765] Rich text add date of last modification into url when save dialog Created: 27/Jan/23  Updated: 30/Oct/23  Resolved: 27/Feb/23

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 6.2.28
Fix Version/s: 6.3.0, 6.2.29

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 2.75d Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Problem/Incident
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MAGNOLIA-8766 Implementation Sub-task Completed Sang Ngo Huu  
MAGNOLIA-8767 Review Sub-task Completed Jaromir Sarf  
MAGNOLIA-8768 Pre-int QA Sub-task Closed Antonín Juran  
MAGNOLIA-8769 QA Sub-task Completed Jaromir Sarf  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* 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: Nucleus Quality Maintenance
Sprint: Nucleus 30
Story Points: 2
Team: Nucleus
Work Started:

 Description   

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


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