-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Increase max regex length in SpEL expressions #30265
Copy link
Copy link
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regressionA bug that is also a regression
Milestone
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regressionA bug that is also a regression
Type
Fields
Give feedbackNo fields configured for issues without a type.
In version
6.0.7ofspring-expressionthere was a method added calledcheckRegexLength:spring-framework/spring-expression/src/main/java/org/springframework/expression/spel/ast/OperatorMatches.java
Lines 120 to 125 in 69c8f8e
It is adding a
256char limit check on a length of a regex in a SpEL expression. We actually use longer regexes. Why would you put this limit? Seems quite random.Please remove this check or at least make that max regex length value configurable.