Error parsing template "classpath:/templates/home.html"
danmfdez opened this issue · comments
Hi,
After upgrading from 0.23.1 to 0.25.1, I am facing an issue.
I read that the new configuration must be included in custo_settings.yml instead of settings.yml file and maintain that file as is. Then, when I enable customHTMLFiles ("customHTMLFiles: true") in 'custom_settings.yml'.
system:
# defaultLocale: 'en-US' # Set the default language (e.g. 'de-DE', 'fr-FR', etc)
# googlevisibility: false # 'true' to allow Google visibility (via robots.txt), 'false' to disallow
# enableAlphaFunctionality: false # Set to enable functionality which might need more testing before it fully goes live (This feature might make no changes)
# showUpdate: false # see when a new update is available
# showUpdateOnlyAdmin: false # Only admins can see when a new update is available, depending on showUpdate it must be set to 'true'
customHTMLFiles: true
If I enabled it, even if I don't have any template in the directory, I get a parsing template error:
HTTP ERROR 500 jakarta.servlet.ServletException: Request processing failed: org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "classpath:/templates/home.html")
URI: /
STATUS: 500
MESSAGE: jakarta.servlet.ServletException: Request processing failed: org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "classpath:/templates/home.html")
SERVLET: dispatcherServlet
CAUSED BY: org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "classpath:/templates/home.html")
CAUSED BY: java.io.FileNotFoundException: ClassLoader resource "classpath:/templates/home.html" could not be resolved
Caused by:
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "classpath:/templates/home.html")
...
If I disable that option, all works fine.
I have other configs in custom file, like "appName" and "toRemove", and they work fine. It only fails when I add customHTMLFiles.
I saw this issue related (#1369), but I do not have login enabled and the parsing template is different.
Thanks.