Skip to content

fix(server): avoid #execInfo in mail template - #5815

Merged
SteKoe merged 2 commits into
masterfrom
fix/mail-template-execinfo-5812
Oct 27, 2026
Merged

SteKoe merged 2 commits into
masterfrom
fix/mail-template-execinfo-5812

Conversation

@SteKoe

@SteKoe SteKoe commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #5812

  • Reference the statusDetails fragment of the current template via ~{:: statusDetails} instead of #execInfo, which Thymeleaf (>= 3.1.4) restricts in fragment expressions.
  • Add a @SpringBootTest rendering the default template with nested status details (fails with the pre-fix(deps): update spring boot to v4.0.6 #5315 template, passes now).
  • Document the restriction for custom mail templates.

Reference the statusDetails fragment of the current template via
~{:: statusDetails} instead of #execInfo, which Thymeleaf restricts in
fragment expressions. Add an integration test rendering nested status
details and document the restriction for custom templates.

Fixes #5812
@SteKoe
SteKoe requested a review from a team as a code owner October 23, 2026 06:35

@ulischulte ulischulte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SteKoe
SteKoe merged commit b11ba9c into master Oct 27, 2026
1 check passed
@SteKoe
SteKoe deleted the fix/mail-template-execinfo-5812 branch October 27, 2026 06:42
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.

Access to variable '#execInfo' is forbidden in this context (template: "META-INF/spring-boot-admin-server/mail/status-changed.html" - line 81, col 17

2 participants