Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Dec 16, 2025

Fluid 5 disallows variable names that start with an underscore. While
this is already enforced in StandardVariableProvider for setting
such variables, this change now also triggers an exception if a
variable with an invalid name is accessed.

This is probably a temporary change to be removed with Fluid 6. For now,
it allows the TemplateValidator, which is used during template
warmup, to discover this issue during parse time, and to let users
know about affected templates.

Resolves: #1263

Fluid 5 disallows variable names that start with an underscore. While
this is already enforced in `StandardVariableProvider` for setting
such variables, this change now also triggers an exception if a
variable with an invalid name is accessed.

This is probably a temporary change to be removed with Fluid 6. For now,
it allows the `TemplateValidator`, which is used during template
warmup, to discover this issue during parse time, and to let users
know about affected templates.

Resolves: #1263
@s2b s2b merged commit 993b77a into main Dec 16, 2025
10 checks passed
@s2b s2b deleted the task/underscoreVariablesScan branch December 16, 2025 17:26
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.

Detect variables with leading _ during parse-time

3 participants