You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where the expressionString that is to be parsed by the TemplateAwareExpressionParserf is a Javascript snippet that contains an expression. This script especially has closing braces after the expression
Something like
"{ var val = '${foo.bar}'; }"
The final method parseExpressions() has this part in it
} else {
// another expression exists after this one in the expression string
suffixIndex = expressionString.lastIndexOf(suffix, nextPrefixIndex);
}
(suffix is context.getExpressionSuffix() and evaluates to "}")
Apparently, when the expressionString contains a single } which does not belong to the expression, then the parser identifies the wrong substring as the expression to be parsed
(in this case the part "foo.bar}'; "), so the following expression parsing in doParseExpression() throws an exception.
Affects: 3.0 M1
The text was updated successfully, but these errors were encountered:
Oliver Becker opened SPR-5438 and commented
I have a scenario where the expressionString that is to be parsed by the TemplateAwareExpressionParserf is a Javascript snippet that contains an expression. This script especially has closing braces after the expression
Something like
"{ var val = '${foo.bar}'; }"
The final method parseExpressions() has this part in it
(suffix is context.getExpressionSuffix() and evaluates to "}")
Apparently, when the expressionString contains a single } which does not belong to the expression, then the parser identifies the wrong substring as the expression to be parsed
(in this case the part "foo.bar}'; "), so the following expression parsing in doParseExpression() throws an exception.
Affects: 3.0 M1
The text was updated successfully, but these errors were encountered: