[MAGNOLIA-5631] DumperUtil's output is wrong when properties have multiple values Created: 17/Jan/14  Updated: 29/Jan/14  Resolved: 17/Jan/14

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

Type: Bug Priority: Minor
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File MAGNOLIA-5631.patch    
Template:
Patch included:
Yes
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

 Description   

info.magnolia.cms.util.DumperUtil currently doesn't output multi-value properties correctly.
If prop1 is multiple but has a single value, it will print it like this

prop1=somevalue

prop2=somethingElse

(note the unnecessary blankline)
If it has multiple values, the bug becomes more apparent

prop1=valueA,
valueB
,
valueC
prop2=somethingElse

Here's a patch - but no test.



 Comments   
Comment by Magnolia International [ 17/Jan/14 ]

Applied patch, added test.

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