[MAGNOLIA-7359] Yaml inlcude not working with colon syntax Created: 09/Aug/18  Updated: 05/Feb/19  Resolved: 21/Nov/18

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

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

Attachments: PNG File include-not-working.png    
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   

The documentation states that yaml include syntax should be used with a colon separator like this:

actions: !include:/module-a/includes/common-actions.yaml

This does not seem to be working.

If I go the Resource Files app and create a new include file called actions.yml

commit:
  class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
cancel:
  class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition

Then use that include file using the colon syntax

actions: !include:/travel-demo/dialogs/components/actions.yml

I get an error in the Definitions app



 Comments   
Comment by Richard Gange [ 09/Aug/18 ]

The older syntax with the space still works:

actions: !include /travel-demo/dialogs/components/actions.yml
Comment by Richard Gange [ 21/Nov/18 ]

cannot reproduce on latest demo 5.7

Comment by Richard Gange [ 21/Nov/18 ]

The real problem is dot yml seems to be forbidden.

Comment by Thomas Duffey [ 05/Feb/19 ]

In addition any dots other than in the ".yaml" suffix are forbidden, which is a real bummer.

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