undertow-io / jastow

Jasper fork for Undertow
Apache License 2.0
22 stars 46 forks source link

[UNDERTOW-2214] Jastow compilation error when mixing EL and scriptlet expressions after UNDERTOW-1319 #77

Closed rmartinc closed 1 year ago

rmartinc commented 1 year ago

Issue: https://issues.redhat.com/browse/UNDERTOW-2214

Reverting UNDERTOW-1319 to be compliant with the spec. In a JSP tag attribute a value scriptlet expression must appear by itself (full attribute), multiple expressions, and mixing of expressions and string constants are not permitted. Adding a simple test in the TagLibJspTestCase to ensure the behavior is not changed again.

If anybody prefers an intermediate solution (for example accepting the previous bad behavior by default or after setting a system property) just let me now. But I prefer to be spec compliant and do not complicate the validation (as the previous fix was incomplete).

PR for 2.2.x. PR for 2.0.x: https://github.com/undertow-io/jastow/pull/78

ropalka commented 1 year ago

Thanks @rmartinc !