[MAGNOLIA-4873] Throw IAE in DelegateNodeWrapper.setWrappedNode() when node is already wrapped with this class - port to master Created: 27/Feb/13  Updated: 22/Mar/13  Resolved: 13/Mar/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0

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

Issue Links:
Cloners
clones MAGNOLIA-4867 Throw IAE in DelegateNodeWrapper.setW... Closed
causality
is causing MAGNOLIA-4916 Add possibility to allow multiple wra... Closed
dependency
is depended upon by MGNLSTK-1105 Escape values for rendering, don't es... 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)
Date of First Response:

 Description   

We don't want double wrapped nodes. For example double escaping with HtmlEscapingNodeWrapper can cause problems in FTL templates.
Throw IllegalArgumentException in DelegateNodeWrapper.setWrappedNode() when node is already wrapped with this class.



 Comments   
Comment by Roman Kovařík [ 27/Feb/13 ]

Port to 4.5 is registered under MAGNOLIA-4867

Comment by Jozef Chocholacek [ 07/Mar/13 ]

The date in the header should be updated - you did that for the DelegateNodeWrapperTest.java, but not for the other two files.

Generated at Mon Feb 12 03:59:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.