Skip to content

Add a configurable limit for structural nesting depth in SpEL expressions #36723

@wo1enca1ca1

Description

@wo1enca1ca1

Background

SpelParserConfiguration already enforces a limit on expression length (getMaximumExpressionLength()), but there is currently no equivalent limit on an expression's structural nesting depth (e.g. nested inline lists).


Proposal

Add a configurable nesting-depth limit to SpelParserConfiguration, and when the limit is exceeded fail parsing with a descriptive SpelParseException — as an enhancement in 7.1, to improve parser diagnostics.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions