You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've observed a very strange and intermittent behaviour of Thymeleaf template engine while we're rendering HTML templates at some of our Spring services. We use autowired SpringTemplateEngine directly to process the template files in web controller and SQS message listeners (in highly concurrent manner). To demonstrate the issue: (left out some part to highlight the problem)
Problem is it sometimes omit the quotes of attributes while leave the rest untouched. This is quite an severe for us since we're using the rendered template as an input of further processing which expects well formatted XHTML files thus result in failure. Unfortunately we've tried to reproduce this consistently but couldn't... we merely observe this intermittently as part of our deployed system. We decided to report this as it might surface an underlying issue...
Do you have any idea what may have caused this behaviour to sometime omit quotes from certain HTML attributes?
Environment:
Thymeleaf version (using org.springframework.boot:spring-boot-starter-thymeleaf:2.7.7)
There is nothing in Thymeleaf's code that indicates high concurrency could affect how an attribute that is not even processed ends up being quoted/unquoted at the final result. I would ask to re-verify that the original template is not the one that actually changes.
A sample project demonstrating this issue would be needed for further diagnostic.
We've observed a very strange and intermittent behaviour of Thymeleaf template engine while we're rendering HTML templates at some of our Spring services. We use autowired
SpringTemplateEngine
directly to process the template files in web controller and SQS message listeners (in highly concurrent manner). To demonstrate the issue: (left out some part to highlight the problem)Original template
Rendered
Problem is it sometimes omit the quotes of attributes while leave the rest untouched. This is quite an severe for us since we're using the rendered template as an input of further processing which expects well formatted XHTML files thus result in failure. Unfortunately we've tried to reproduce this consistently but couldn't... we merely observe this intermittently as part of our deployed system. We decided to report this as it might surface an underlying issue...
Do you have any idea what may have caused this behaviour to sometime omit quotes from certain HTML attributes?
Environment:
Thymeleaf version (using org.springframework.boot:spring-boot-starter-thymeleaf:2.7.7)
Spring boot version: 2.7.7
Runtime:
Workaround:
After we restart the service it helps presumably due to the eviction of template cache.
The text was updated successfully, but these errors were encountered: