[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:
causality
is causing MGNLRES-179 Migrate all resources from templates ... Closed
is causing MGNLINTEMPL-79 Deprecate and remove installation tas... Closed
dependency
depends upon MAGNOLIA-6253 Split/Extract FreeMarker support clas... Closed
is depended upon by MAGNOLIA-6248 A sub-directory should be set in magn... Closed
duplicate
is duplicated by MAGNOLIA-6247 JavaFree Module templatescript cannot... Closed
relation
is related to MAGNOLIA-6106 The yaml configuration source is deco... Closed
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 MAGNOLIA-1469 / MAGNOLIA-1482 (check the dates)

We'll re-implement template loaders using the new resource loader API soon.

Comment by Magnolia International [ 17/Jun/15 ]

Done on branch feature/MAGNOLIA-6214-freemarker-over-resource-loader-2. Since this implied MAGNOLIA-6253, please review this too.

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