[MAGNOLIA-6838] Relative include in ftl doesn't work on Win7 Created: 24/Oct/16  Updated: 24/Oct/16

Status: Open
Project: Magnolia
Component/s: freemarker
Affects Version/s: 5.4.9
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tomáš Gregovský Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

Relative include in ftl doesn't work on Win7.

on Mac if you do include in freemarker with relative path e.g. include '../includes/file.ftl' it works (file is in 'include' folder which is a sibling to folder with current file). Also simply include 'file.ftl' (when file is in same directory) works on Mac, but both doesn't on Windows 7.

Not sure if there must be some different usage of dots and slash for win, or if its a bug. Anyhow having relative path (from resources.dir - light modules folder) works fine on win.


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