[MGNLUI-7679] Download Definition doesn't quote values starting with YAML syntax characters Created: 07/Dec/22  Updated: 21/Dec/22  Resolved: 07/Dec/22

Status: Closed
Project: Magnolia UI
Component/s: configuration
Affects Version/s: 6.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File reserved-character.png     PNG File unresolved-tag.png    
Issue Links:
relation
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
Team: Services

 Description   

The action "Download Definition" (aka ExportYamlAction) doesn't always handle YAML Syntax Characters correctly. In the case where you had a JCR based definition where one of the property values starts with one of these characters it can create an invalid definition.

Reproduce
Create an app definition in JCR where one of the configuration property values starts with one of the reserved characters.

Expected
The value should be surround by quotes so that the YAML parser does not mistake it for some sort of YAML specific functionality.

Actual
The value is left as-is which can lead to problems with the definition validity.

Workaround
After downloading the definition add the quotes manually in the editor.

Development Notes
ExportYamlAction is already deprecated since 6.2.


Generated at Mon Feb 12 09:48:21 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.