[MAGNOLIA-7351] Setting a property to null via YAML configuration should report a problem Created: 25/Jul/18 Updated: 31/Oct/22 Resolved: 11/Mar/19 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Viet Nguyen | Assignee: | Milan Divilek |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 11m | ||
| Time Spent: | 1h 8m | ||
| 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
|
||||||||||||||||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||||||||||||||||
| Epic Link: | Support | ||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Features 6 | ||||||||||||||||||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Thanks to mchruscielewski in SUPPORT-8899, "availableComponents" field but has no subfields in yaml area definition caused NPE.
templateScript: /website/templates/components/pages/globalcoverage/country_overview.ftl
renderType: freemarker
title: Global coverage - country overview
areas:
countries:
type: list
renderType: freemarker
availableComponents:
First round investigation from customer: info.magnolia.rendering.template.registry.validator.TemplateDefinitionValidator protected void validateArea(DefinitionProvider<TemplateDefinition> definitionProvider, Collection<Problem> problems, String rootPath, AreaDefinition areaDefinition) { areaDefinition.getAvailableComponents().forEach((componentName, componentAvailability) -> { ... } caused NPE. |
| Comments |
| Comment by Milan Divilek [ 12/Mar/19 ] |
|
For release notes
list: []
map: {}
|