[MGNLUI-6527] Image embedded with RTE in the old pages app "broken" when opening component in new pages app Created: 26/Jan/21  Updated: 11/Oct/21  Resolved: 08/Feb/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.5
Fix Version/s: 6.2.7

Type: Bug Priority: Major
Reporter: Richard Gange Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File images.png    
Issue Links:
Relates
relates to MGNLUI-6289 Provide compatibility to asset links Closed
relation
is related to MGNLDAM-994 CLONE - RTE image selector embeds con... Closed
is related to MGNLUI-6624 RTE image selector embeds context Closed
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
Sprint: Maintenance 43
Story Points: 5

 Description   

The rich text editor has an option to insert images from the dam.

When an image is selected and saved in past versions of Magnolia the format would look like this:

<p>Hello World!</p><p><img alt="" src="${link:{uuid:{795449d2-6c16-402e-9e8a-bbb101fe22bb},repository:{dam},path:{/tours/shark_brian_warrick_0824.JPG},nodeData:{},extension:{2021-01-26-09-01-43.JPG}}}" style="height:866px; width:1197px" /></p>

Now it's being stored like this:

<p>Hello World!</p><p><img alt="" src="/dam/jcr:795449d2-6c16-402e-9e8a-bbb101fe22bb/shark_brian_warrick_0824.JPG" style="height:866px; width:1197px" /></p>

Reproduce

  • Edit the dialog of mtk:components/textImage to use images.
  • Using the old pages app, create a textImage component which has an embedded image.
  • Using the new pages app, create a textImage component which has an embedded image.
  • Notice how the embedded image created in the old pages app is "broken" when opening the component in the new page app.
  • Also open the JCR Browser to compare the new format and the old format.

Expected
The format should have stayed the same between the two apps.

Actual
The format has changed which breaks installations coming from older versions of Magnolia. Anyone starting a new project on 6.2 will be embedding the new format.

Workaround
Projects using the old format will need to use the old pages when editing components of this type. Otherwise the image is not displayed in the editor. A white box is there representing the space where the image would be.


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