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 2026/02/04 17:19:14 UTC
[Bug 69948] New: EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
Bug ID: 69948
Summary: EL evaluation issue - ArrayOutOfBounds exception
thrown instead of PropertyNotFoundException
Product: Tomcat 10
Version: 10.1.40
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: jerome.besnard@kleegroup.com
Target Milestone: ------
In a JSF/Primefaces application, comparing Tomcat 10.1.39 to Tomcat 10.1.40,
behaviour is radically different when evaluating EL expression.
We were able to find that the el evaluator is no longer throwing out
PropertyNotFoundException (which would be intercepted by higher Primefaces
functions) but a ArrayOutOfBounds exception.
Unfoturnately, given out a reproducer is extremely hard because this is an edge
case in our (quite large) application. But the impact is very stroing for us,
since many user stories are impacted.
Do you have any idea of what could cause such a change of behaviour between 2
minor Tomcat 10 releases ? By the way, we checked also 10.1.52 and we still
have the issue.
Thanks!
Jérôme
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Looking at which code? Care to provide us a hint?
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #5 from Jérôme BESNARD <je...@kleegroup.com> ---
Getting more meaningful exception messages seems like a very reasonable idea to
me...
Mark, if helpful/faster, I could probably PR it.
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #1 from Jérôme BESNARD <je...@kleegroup.com> ---
Looking at the code, I think the error is due to throwing Exceptions after
increasing the loop value rather than before.
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #7 from Christopher Schultz <ch...@christopherschultz.net> ---
And please provide a unit test the currently fails but passes after the change.
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #6 from Christopher Schultz <ch...@christopherschultz.net> ---
Patches are ALWAYS welcome :)
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #9 from Remy Maucherat <re...@apache.org> ---
Thanks for the PR and test case. The fix will be in 11.0.19, 10.1.52, and
9.0.116.
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #3 from Jérôme BESNARD <je...@kleegroup.com> ---
Wooops ! Thought I'd mentionned it earlier :(
Of course. It's in Astvalue, method getTarget.
line 99 and 116 at least, seems to me that throwing Exceptions should be done
before modifying i.
https://github.com/apache/tomcat/blame/10.1.x/java/org/apache/el/parser/AstValue.java
Before commit
https://github.com/apache/tomcat/commit/92e7e3b788eae535f2fc61cc3a3fe8e17e8404e4,
Exceptions would not try to get this.children[i].getImage() so that would be a
non issue.
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #4 from Remy Maucherat <re...@apache.org> ---
Ok, I messed up that cleanup. The idea was that the property passed were always
null, so not helpful. So using i - 2 and i - 1 respectively should be a much
better plan.
I'll let Mark review it, since I messed up once already.
--
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 69948] EL evaluation issue - ArrayOutOfBounds exception thrown instead of PropertyNotFoundException
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69948
--- Comment #8 from Jérôme BESNARD <je...@kleegroup.com> ---
PR open.
First time on Github, and obviously in Tomcat, so be kind :)
--
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