Skip to content

SpEL: add a configurable limit for structural nesting depth #36723

@wo1enca1ca1

Description

@wo1enca1ca1

SpelParserConfiguration already exposes a limit on expression
length (getMaximumExpressionLength()), but there is currently
no equivalent limit on expression structural nesting depth
(e.g. deeply nested inline lists, projection .![...],
selection .?[...]).

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

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions