Skip to content

Disable variable assignment in SimpleEvaluationContext #30326

Closed
@bclozel

Description

@bclozel

Currently, we do not differentiate between setting a SpEL variable programmatically versus within an expression even though the two actions are semantically different.

We should introduce infrastructure to differentiate between programmatically setting a variable in an EvaluationContext versus the assignment of a variable within a SpEL expression using the assignment operator (=). In addition, we should also disable variable assignment within expressions when using the SimpleEvaluationContext.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions