[MGNLSTK-1152] Image description is rendered incorrectly Created: 18/Apr/13  Updated: 30/May/13  Resolved: 29/May/13

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 2.0.10

Type: Bug Priority: Major
Reporter: Jan Haderka Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLDAM-213 CLONE - Image desccription is rendere... Closed
causality
caused by MGNLSTK-1095 Escape values for rendering, don't es... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

to reproduce:

  • go to Documents:/demo-project/img/bk/opener folder
  • open wooden... image and add some description in the FCKEdit field
  • go to {{/demo-project/multimedia/image-gallery.html} page and open the {{wooden...} image.
    result:
    description text is rendered with html tags escaped
    expected result:
    html tags are processed correctly

This can't be fixed by cmsfn.decode() in the template since the image object there is Asset not ContentMp or Node

The problem needs to be resolved in InternalAsset.getDesccription().



 Comments   
Comment by Milan Divilek [ 27/May/13 ]

change:

+/demo-project/img/opener/green-wall-and-window-.description=<p>&lt;script&gt;alert(&quot;haf&quot;)&lt;/script&gt;<strong>test</strong></p>

 assertEquals("<p>&lt;script&gt;alert(&quot;haf&quot;)&lt;/script&gt;<strong>test</strong></p>", asset.getDescription());

and test will fail. The values that were escaped by FCK must stay escaped.

Comment by Roman Kovařík [ 29/May/13 ]

Port to master (MGNLDAM-213) not necessary. The values are escaped/unescaped properly.

Generated at Mon Feb 12 07:33:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.