[MAGNOLIA-5079] Retrieving property value via Value class returns unescaped values Created: 03/Jun/13  Updated: 10/Mar/21  Resolved: 10/Mar/21

Status: Closed
Project: Magnolia
Component/s: rendering
Affects Version/s: 4.5
Fix Version/s: 4.5.x

Type: Bug Priority: Major
Reporter: Adrien Berthou Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: maintenance, next
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-5051 info.magnolia.jcr.util.PropertyUtil.g... 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
Date of First Response:

 Description   

node.getProperty(name).getString();

will return different values for wrapped nodes/properties than

node.getProperty(name).getValue().getString();

because getValue() returns original unwrapped value.

Wrapping frameworks needs to make sure unwrapped values can't be returned w/o unwrapping first, probably by extending implementation and adding ValueWrapper class to the framework.



 Comments   
Comment by Adrien Berthou [ 03/Jun/13 ]

May be related to http://jira.magnolia-cms.com/browse/MAGNOLIA-5051

Comment by Jan Haderka [ 03/Feb/14 ]

For now the fix is on the magnolia-5.x-MAGNOLIA-5079 branch. Backport to 4.5.x should be rather straightforward.

Comment by Jan Haderka [ 03/Feb/14 ]
  • the fix should work the other way around (Property delegating to Value for resolved values)
  • we need to make sure that Property.getValues[] is returning wrapped prop values as well
Generated at Mon Feb 12 04:01:47 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.