mercedes-benz / sechub

SecHub provides a central API to test software with different security tools.
https://mercedes-benz.github.io/sechub/
MIT License
259 stars 58 forks source link

Fix thymeleaf warnings #3104

Closed de-jcup closed 2 months ago

de-jcup commented 2 months ago

Situation

When starting one of the unit tests inside ThymeLeafHTMLReportingTest I get a bunch of warnings:

15:44:39.054 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/styles :: renderStyles" found in template report/html/report, line 9, col 12. Please use the complete syntax of fragment expressions instead ("~{report/html/styles :: renderStyles}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.284 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/summary :: renderScanTypeOverviewLine(scanTypeSummary=${scanTypeSummary})" found in template report/html/report, line 126, col 26. Please use the complete syntax of fragment expressions instead ("~{report/html/summary :: renderScanTypeOverviewLine(scanTypeSummary=${scanTypeSummary})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.317 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/summary :: renderScanTypeOverviewDetails(scanTypeSummary=${scanTypeSummary})" found in template report/html/report, line 136, col 21. Please use the complete syntax of fragment expressions instead ("~{report/html/summary :: renderScanTypeOverviewDetails(scanTypeSummary=${scanTypeSummary})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.342 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/findings :: renderTrafficLightGroup(trafficLightGroup=${trafficLightGroup})" found in template report/html/report, line 145, col 20. Please use the complete syntax of fragment expressions instead ("~{report/html/findings :: renderTrafficLightGroup(trafficLightGroup=${trafficLightGroup})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.352 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/findings :: renderTrafficLightGroup(trafficLightGroup=${trafficLightGroup})" found in template report/html/report, line 145, col 20. Please use the complete syntax of fragment expressions instead ("~{report/html/findings :: renderTrafficLightGroup(trafficLightGroup=${trafficLightGroup})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.371 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/findings] Deprecated unwrapped fragment expression "report/html/findings :: renderFindings(finding=${finding}, scanTypeFindingData=${scanTypeFindingData})" found in template report/html/findings, line 22, col 23. Please use the complete syntax of fragment expressions instead ("~{report/html/findings :: renderFindings(finding=${finding}, scanTypeFindingData=${scanTypeFindingData})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.385 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/findings] Deprecated unwrapped fragment expression "report/html/links :: cweLink(finding=${finding})" found in template report/html/findings, line 37, col 11. Please use the complete syntax of fragment expressions instead ("~{report/html/links :: cweLink(finding=${finding})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.405 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/findings] Deprecated unwrapped fragment expression "report/html/findings :: footer(finding=${finding})" found in template report/html/findings, line 105, col 14. Please use the complete syntax of fragment expressions instead ("~{report/html/findings :: footer(finding=${finding})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.415 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/findings] Deprecated unwrapped fragment expression "report/html/links :: cweLink(finding=${finding})" found in template report/html/findings, line 165, col 19. Please use the complete syntax of fragment expressions instead ("~{report/html/links :: cweLink(finding=${finding})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.418 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/findings :: renderTrafficLightGroup(trafficLightGroup=${trafficLightGroup})" found in template report/html/report, line 145, col 20. Please use the complete syntax of fragment expressions instead ("~{report/html/findings :: renderTrafficLightGroup(trafficLightGroup=${trafficLightGroup})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
15:44:39.425 [main] WARN  o.t.s.p.AbstractStandardFragmentInsertionTagProcessor - [THYMELEAF][main][report/html/report] Deprecated unwrapped fragment expression "report/html/messages :: renderMessages(messages=${messages})" found in template report/html/report, line 152, col 15. Please use the complete syntax of fragment expressions instead ("~{report/html/messages :: renderMessages(messages=${messages})}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.

This happens on every report generation - and happens extreme often (more findings... more warnings...)

Wanted

No warnings