Skip to content

Fixed FreeMarker template resolution issue when OFBiz installation or component paths contain spaces (OFBIZ-10434)#1226

Merged
dixitdeepak merged 1 commit into
apache:trunkfrom
dixitdeepak:OFBIZ-10434-path-with-space
May 19, 2026
Merged

Fixed FreeMarker template resolution issue when OFBiz installation or component paths contain spaces (OFBIZ-10434)#1226
dixitdeepak merged 1 commit into
apache:trunkfrom
dixitdeepak:OFBIZ-10434-path-with-space

Conversation

@dixitdeepak

Copy link
Copy Markdown
Contributor

Updated FlexibleTemplateLoader#getURL() in FreeMarkerWorker to use:
new File(locationUrl.toURI()).exists()
This fixes template lookup failures caused by URL-encoded paths (%20) when OFBiz or component directories contain spaces.

Thanks Jacques Le Roux for reporting the issue.

… component paths contain spaces (OFBIZ-10434)

Updated FlexibleTemplateLoader#getURL() in FreeMarkerWorker to use:
'new File(locationUrl.toURI()).exists()'
This fixes template lookup failures caused by URL-encoded paths (%20) when OFBiz or component directories contain spaces.
@dixitdeepak dixitdeepak merged commit 8c3aa20 into apache:trunk May 19, 2026
5 checks passed
@dixitdeepak dixitdeepak deleted the OFBIZ-10434-path-with-space branch May 19, 2026 06:38
dixitdeepak added a commit that referenced this pull request May 19, 2026
… component paths contain spaces (OFBIZ-10434) (#1226)

Updated FlexibleTemplateLoader#getURL() in FreeMarkerWorker to use:
`new File(locationUrl.toURI()).exists()`
This fixes template lookup failures caused by URL-encoded paths (%20)
when OFBiz or component directories contain spaces.

Thanks Jacques Le Roux for reporting the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant