[MAGNOLIA-5993] I18nNodeWrapper can't handle array-Properties Created: 20/Nov/14  Updated: 14/Sep/15  Resolved: 08/Sep/15

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.3.5
Fix Version/s: 5.3.11, 5.4.3

Type: Bug Priority: Critical
Reporter: Adi De Masi Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 2
Labels: support
Remaining Estimate: 1d 5h
Time Spent: 2d 3h
Original Estimate: 4d

Issue Links:
causality
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:
Sprint: Basel 10
Story Points: 8

 Description   

If you have a multi-value property, I18nNodeWrapper will always return the default values. Problem is, that in AbstractI18nContentSupport, the property will be checked if empty with

StringUtils.isEmpty(PropertyUtil.getValueString(nd))

Since the value is an array, PropertyUtil.getValueString will return null and therefore the value is empty. This invalidates the property and AbstractI18nContentSupport will then fall back to the default language.



 Comments   
Comment by Richard Gange [ 21/Aug/15 ]

Customer Care Score:

5+2+3+3+5+0=18

Comment by Sang Ngo Huu [ 04/Sep/15 ]

Please integrate code to master too.

Generated at Mon Feb 12 04:10:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.