Commit 8c3aa20
authored
Fixed FreeMarker template resolution issue when OFBiz installation or 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.1 parent 0fe65ee commit 8c3aa20
1 file changed
Lines changed: 3 additions & 4 deletions
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
560 | | - | |
561 | 559 | | |
562 | | - | |
| 560 | + | |
| 561 | + | |
563 | 562 | | |
564 | 563 | | |
565 | 564 | | |
566 | | - | |
| 565 | + | |
567 | 566 | | |
568 | 567 | | |
569 | 568 | | |
| |||
0 commit comments