[MGNLUI-7570] Magnolia 6.3 - Global validator SafeHtmlValidatorDefinition does not accept HTML comment block Created: 13/Oct/22  Updated: 21/Oct/22  Resolved: 21/Oct/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.21
Fix Version/s: 6.3

Type: Improvement Priority: Neutral
Reporter: Viet Nguyen Assignee: Jaromir Sarf
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLUI-7379 Global validator SafeHtmlValidatorDef... Closed
causality
caused by MGNLUI-7285 richTextField HTML validation Selected
supersession
is superseded by MGNLUI-7337 Magnolia 6.3 - Port SafeHtmlValidator... 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)
Testcase included:
Yes
Release notes required:
Yes
Date of First Response:
Epic Link: richTextField HTML validation
Team: Nucleus

 Description   

Steps to reproduce

  1.  Enable source mode for any Rich Text Field
  2.  Put an HTML comment into "source" mode with some valid text and tags
  3. Save the component

.. Logs, screenshots, gifs...

Expected results

  • Content save without any error

.. Justify non-trivial expectations with a link to a doc or a relevant discussion.

Actual results

  • Users cannot save content, "Malicious HTML code found" validation error occurred.

Workaround

  • Please ask users/customers to temporarily remove the comment(s) from your HTML by using any HTML editor / online editor tool for that.

Development notes

  • N/A


 Comments   
Comment by Roman Kovařík [ 19/Oct/22 ]

This ticket can be superseeded by MGNLUI-7337.

Comment by Jaromir Sarf [ 20/Oct/22 ]

Discovery:
Use PRs from https://jira.magnolia-cms.com/browse/MGNLUI-7379.

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