[MAGNOLIA-6214] FreeMarker template scripts should be loaded with new Resource API Created: 22/May/15 Updated: 14/Jul/15 Resolved: 17/Jun/15 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | freemarker, resource-loader |
| Affects Version/s: | 5.4 |
| Fix Version/s: | 5.4 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Natascha Desmarais | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
5.4 alpha-2 CE and EE bundles |
||
| 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
|
||||||||||||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||||||||||||
| Description |
|
When using the magnolia.resources.dir property in the magnolia.properties file to define a folder outside of ${magnolia.home} the YAML config files are correctly loaded, but the template scripts in the same place create a FileNotFound exception. Even after a restart the template scripts cannot be found. Works again once you place everything in ${magnolia.home} again. |
| Comments |
| Comment by Magnolia International [ 25/May/15 ] |
|
This is a known missing feature. It currently works, not because of how magnolia.home or magnolia.resources.dir are set, but because we implemented and configured oob TemplateLoader in FreeMarker with We'll re-implement template loaders using the new resource loader API soon. |
| Comment by Magnolia International [ 17/Jun/15 ] |
|
Done on branch feature/ |