[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: |
|
||||||||
| 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- |
| Comment by Jan Haderka [ 03/Feb/14 ] |
|