You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/11/24 22:39:31 UTC
[Bug 61816] New: Jsp Precompile doesn't fail on ${}
https://bz.apache.org/bugzilla/show_bug.cgi?id=61816
Bug ID: 61816
Summary: Jsp Precompile doesn't fail on ${}
Product: Tomcat 8
Version: 8.5.13
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: freshcodemonger@gmail.com
Target Milestone: ----
Fails at runtime with:
Failed to parse the expression [${}] Encountered " "}" "} "" at line 1, column
3.
Was expecting one of:
"{" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<STRING_LITERAL> ...
"true" ...
"false" ...
"null" ...
"(" ...
"[" ...
"!" ...
"not" ...
"empty" ...
"-" ...
...
...
"(" ...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61816] Jsp Precompile doesn't fail on ${}
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61816
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
That is consistent with the current behaviour without pre-compilation. The
error is triggered at runtime so I wouldn't expect it to be triggered by
pre-compilation.
The question is should ${} trigger a translation error or not. That needs some
spec research.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61816] Jsp Precompile doesn't fail on ${}
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61816
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
<quote>
JSP.2.7
JSP containers are required to produce a translation error when a syntactically
invalid EL expression is encountered in an attribute value or within template
text.
</quote>
And, since ${} is not valid there should be a translation error (i.e. a compile
time error). The fix looks fairly simple.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61816] Jsp Precompile doesn't fail on ${}
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61816
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- trunk for 9.0.2 onwards
- 8.5.x for 8.5.24 onwards
- 8.0.x for 8.0.48 onwards
- 7.0.x for 7.0.83 onwards
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org